[Gambas-user] Randomize

Rob Kudla sourceforge-raindog2 at ...94...
Thu Jul 13 19:59:44 CEST 2006


On Thu July 13 2006 04:39, Leonardo Miliani wrote:
> In VB (but also in other old BASICs, i.e.: Commodore Basic,
> GWBASIC) randomize timer is used to setup the RNG with the
> actual system time (this is like the actual Gambas command
> Randomize, so you are sure to have a random sequence), but if
> you write randomize 12, for example, you'll get a specific
> random sequence that it will be always the same.

The "srand" function in perl does exactly the same thing, so 
Benoit could look there for example code if the Unix call 
"srand" doesn't have this behavior.

Rob




More information about the User mailing list