On Fri, 29 Nov 2002, .--- ... wrote:
( 02.11.28 13:19 +0000 ) Enrique Franco:
I mean, for instance, if the random range is 5 I want to get a different number each time.
But that's not random!!
Yes it's random, but it's not uniform random. It's a Markov chain with a probability matrix of:
0 ¼ ¼ ¼ ¼
¼ 0 ¼ ¼ ¼
¼ ¼ 0 ¼ ¼
¼ ¼ ¼ 0 ¼
¼ ¼ ¼ ¼ 0
which is an all-ones matrix minus the identity matrix (and then divided by 4 for standardization...)
Mathieu Bouchard http://artengine.ca/matju