Class Random

All Implemented Interfaces:
ArithFunction, Serializable

public class Random extends DefaultArithFunction

Function: math.random(N): encapsulates java Math.random; If N is not informed: returns a value greater than or equal to 0.0 and less than 1.0; If N is informed: returns a value greater than or equal to 0.0 and less than N.

Examples:

  • math.random: returns the random number between 0 and 1.
  • math.random(10): returns the random number between 0 and 9.9999.
See Also: