2 /* Prototype : void srand ([ int $seed ] )
3 * Description: Seed the random number generator.
4 * Source code: ext/standard/rand.c
7 echo "*** Testing srand() : basic functionality ***\n";
9 // Should return NULL if given anything that it can convert to long
10 // This doesn't actually test what it does with the input :-\
13 var_dump(srand(500.1));
14 var_dump(srand("500"));
15 var_dump(srand("500E3"));
16 var_dump(srand(true));
17 var_dump(srand(false));
18 var_dump(srand(NULL));