Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_math
random_float/1
Description
random_float/1 is an Erlang function exported by "age_math" module.
Generates a unique floating point value (number). Optionally you can set an upper limit of the generated value.
References
•trunc/2
Parameters
Name
Type
Max
integer()
Optional. Upper limit of the generated value. Defaults to 100.
Result
Value or Type
number()
Returns a generated number value.
Code Sample
> age_math:random_float(). 68.04 > age_math:random_float(). 28.37 > age_math:random_float(1000). 368.42