eurica

numbers for people.

October 27, 2004
by dave
Comments Off on How good is Rand() in PHP?

How good is Rand() in PHP?

Not Good: I needed an image of random noise (to demonstrate that it had a [http://en.wikipedia.org/wiki/Box-counting_dimension](box-counting dimension) of 3). So I wrote the following script to throw one together, but it doesn’t look random enough. $img = imageCreateTrueColor(512, 512); for … Continue reading