how works random?
#4

As stated there, the random function returns a number between 0 and max-1. Random(1) will therefor always produce 0. If you need two values to choose from, you need random(2) which will produce either 0 or 1.
Reply


Messages In This Thread
how works random? - by mineralo - 17.03.2012, 10:54
Re: how works random? - by T0pAz - 17.03.2012, 10:59
Re: how works random? - by mineralo - 17.03.2012, 11:00
Re: how works random? - by Vince - 17.03.2012, 11:04
Re: how works random? - by mineralo - 17.03.2012, 11:43

Forum Jump:


Users browsing this thread: 1 Guest(s)