Navigation:  thinBasic Modules > Core > Numeric handling >

RNDF

Previous pageReturn to chapter overviewNext page

 

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 Handling, RND,

 

Examples