How to use PHP srand() function?

Dasaru

New member
I can't figure this out...

$seed = "143287";
srand($seed);
var_dump($rand);

No matter what I do, it always returns NULL. I went on php.net and it says it doesn't return any value... The examples are overcomplicated as always for a beginner like myself. I even read other people's code and still couldn't get a gist on how to use it!

Any help is appreciated ;)
 
Back
Top