RNDF

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Numeric functions >

RNDF

 

Description

 

Return a random number in the range of nFrom - nTo.

Returned value is as Extended-precision floating point number.

 

Syntax

 

n = RNDF(nFrom, nTo [, nDecimals])

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

nFrom

Number

No

Lower limit

nTo

Number

No

Upper limit

nDecimals

Number

Yes

Number of decimal places to round to

 

Remarks

 

Restrictions

 

See also

 

Numeric functions, RND,

 

Examples