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

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to