[Gambas-user] Rnd Wiki

Demosthenes Koptsis demosthenesk at ...626...
Thu Nov 25 13:26:54 CET 2010


For one parameter you still have

* If only one parameter is specified, returns a pseudo-random in the
interval [ 0 , Min [.

i think is

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

and something else what does it mean 
0, Max [. 
?

isn't it [0, Max] ?

On Thu, 2010-11-25 at 13:10 +0100, Benoît Minisini wrote:
> > In wiki the page http://gambasdoc.org/help/lang/rnd?show
> > 
> > i think in these parts is hard read.
> > 
> > * If no parameters is specified, returns a pseudo-random number in the
> >   interval [ 0 , 1 [.
> >   * If the one parameter is specified, returns a pseudo-random in the
> >     interval [ 0 , Min [.
> >   * If the two parameters are specified, returns a pseudo-random in the
> >     interval [ Min , Max [.
> > 
> > I think you mean:
> > 
> > * If no parameters is specified the defaults are Min=0, Max=1, returns a
> > pseudo-random number in the
> >   interval [ 0 , 1 ].
> >   * If the one parameter is specified it is Max value, returns a
> >     pseudo-random in the interval [ 0 , Max ].
> >   * If the two parameters are specified they are Min, Max values,
> >     returns a pseudo-random in the interval [ Min , Max ].
> > 
> > Am i right?
> > 
> > As i see in example that i understand.
> 
> Yes, except that the higher born of the interval is never returned.
> 
> I have fixed the bad english in the wiki page.
> 
> Regards,
> 

-- 
Regards,
Demosthenes Koptsis.





More information about the User mailing list