math/ random.bi

Summary
math/ random.bi
LicenseCopyright © 2009, FreeBASIC Extended Library Development Group
ext.math
Functions
RndRangeReturns an integer within the specified range.
RndRangeReturns an double within the specified range.

License

Copyright © 2009, FreeBASIC Extended Library Development Group

Contains code contributed and Copyright © 2007, mr_cha0s: ruben.nosp@m..coder@gmai.nosp@m.l.com

Distributed under the FreeBASIC Extended Library Group license.  See accompanying file LICENSE.txt or copy at http://code.google.com- /p- /fb-extended-lib- /wiki- /License

ext.math

Summary
Functions
RndRangeReturns an integer within the specified range.
RndRangeReturns an double within the specified range.

Functions

RndRange

declare function RndRange overload (byval min_ as integer,  
byval max as integer,  
byval getnew as integer =  1) as integer

Returns an integer within the specified range.

Parameters

min_the minimum number to return.
maxthe maximum number to return.
getnewoptional parameter to pass to rnd, defaults to 1.

Returns

Random integer between min_ and max.

RndRange

declare function RndRange overload (byval lower as double,  
byval upper as double,  
byval getnew as integer =  1) as double

Returns an double within the specified range.

Parameters

min_the minimum number to return.
maxthe maximum number to return.
getnewoptional parameter to pass to rnd, defaults to 1.

Returns

Random double between min_ and max.

declare function RndRange overload (byval min_ as integer,  
byval max as integer,  
byval getnew as integer =  1) as integer
Returns an integer within the specified range.