HP Prime for All

English  Русский 

Syntax

RANDOM([a],[b],[c])

Description

Random number. Returns a pseudo-random number generated using a seed value, and updates the seed value. With no argument, this function returns a random number x with 0 ≤ x < 1. With one argument, this returns a random number x with 0 ≤ x < a. With two arguments, this returns a random number x with a ≤ x < b. With three arguments, this returns a list of size a with each element being a random number x with b ≤ x < c.

Example

RANDOM(3,0,10) returns { random1, random2, random3 }

RANDOM — Discussion