On 13/12/10 05:09, Jonathan Mullins wrote:
Is there a way to generate a random number in Aseba Script? Or would this have to be implemented as a native function?
I have been looking quickly into random generators. It seems that for aseba a Mersene Twister is probably too slow, so we might go for a WELL [1,2] if we need a very good random, or for the linear congruential generator of the libc [3]. What quality/speed tradeoff do you aim at?
Kind regards, Stéphane [1] http://www.iro.umontreal.ca/~panneton/WELLRNG.html [2] http://www.iro.umontreal.ca/~lecuyer/myftp/papers/lfsr04.pdf [3] http://en.wikipedia.org/wiki/Linear_congruential_generator -- Dr Stéphane Magnenat http://stephane.magnenat.net _______________________________________________ Aseba-user mailing list [email protected] https://mail.gna.org/listinfo/aseba-user
