erez_zi
12-24-2002, 01:26 AM
Hi,
I'm not sure if this is the right place to ask this question:
I saw the following code somewhere:
myrandom(void)
{
static int dirty=2;
dirty *= 69069;
dirty += 85;
return dirty;
}
I didn't understand the usage of 69069. I guess it has something to do with the fact that the I use 32 bit numbers. How?
Thanks
Erez
I'm not sure if this is the right place to ask this question:
I saw the following code somewhere:
myrandom(void)
{
static int dirty=2;
dirty *= 69069;
dirty += 85;
return dirty;
}
I didn't understand the usage of 69069. I guess it has something to do with the fact that the I use 32 bit numbers. How?
Thanks
Erez