HP Prime for All

English  Русский 

Syntax

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

Description

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

Example

RANDINT(3,1,6) returns { random1, random2, random3 }

RANDINT — Discussion