[vox-tech] random number in C

Shawn P. Neugebauer vox-tech@lists.lugod.org
Tue, 2 Apr 2002 15:00:51 -0800


On Tuesday 02 April 2002 02:47 pm, you wrote:
> ...
> so now i comment out the call to SeedRandomGenerator() and replace it by
>
>    int main(int argc, char *argv[])
>    {
>    	...
>       /* seed = SeedRandomGenerator(); */
>       seed = 3497451914;
>       ...

and you called srand(seed) after this, yes?  otherwise the default seed is 1,
and it will be 1 on each run.

shawn.