ConFoo Montreal 2026: Call for Papers

Voting

: three minus zero?
(Example: nine)

The Note You're Voting On

bootc at bootc dot net
20 years ago
OK, to summarize what people have been saying so far:

1. DO NOT seed the RNG more than once if you can help it!
2. You HAVE TO seed the RNG yourself if you are using PHP < 4.2.0.
3. Using a prime multiplier to microtime() probably does very little. Use the Mersenne Twister instead.
4. You can use the Mersenne Twister PRNG with the mt_rand and mt_srand functions. This is faster and is more random.

<< Back to user notes page

To Top