[Gambas-user] Rnd Wiki

Fabien Bodard gambas.fr at ...626...
Thu Nov 25 14:26:12 CET 2010


if i wrote that like a function ...

rnd(min as float, max as float)

the variable named min don't change his name

i think benoit should take others name than min/max


val1/val2 ?

Float = Rnd ( [ Val1 [ , Val2 ] )


* If no parameters is specified, returns a pseudo-random number in the
  interval [ 0 , 1 [.

 * If only one parameter is specified it is Max value, returns a
pseudo-random in the
   interval [ 0 , Val1 [.

 * If the two parameters are specified they are Min, Max values,
   returns a pseudo-random in the interval [ Val1 , Val2 ].


--
Fabien Bodard




More information about the User mailing list