RanList# Examples

Example

Operation

 

 

RanList# (4)

*(E)(PROB)*(RAND)(List)

(Generates four random numbers and

4U

displays the result on the ListAns screen.)

 

RanList# (3, 1)

)*(E)(PROB)*(RAND)

(Generates from the first to the third random

(List) 3 1U

numbers of sequence 1 and displays the

 

result on the ListAns screen.)

 

(Next, generates from the fourth to the sixth

)U

random number of sequence 1 and displays

 

the result on the ListAns screen.)

 

Ran# 0

)(Ran#) 0U

(Initializes the sequence.)

 

RanList# (3, 1)

(List) 3 1U

(Re-generates from the first to the third

 

random numbers of sequence 1 and displays

 

the result on the ListAns screen.)

 

 

 

 

* fx-7400GII: (PROB)

SRandom Integer Generation (RanInt#)

RanInt# generates random integers that fall between two specified integers.

RanInt# (A, B [,n]) A < B A,B < 1E10 B – A < 1E10 1 n 999

A is the start value and B is the end value. Omitting a value for n returns a generated random number as-is. Specifying a value for n returns the specified number of random values in list form.

Example

Operation

 

 

RanInt# (1, 5)

*(E)(PROB)*(RAND)(Int)

(Generates one random integer from 1 and

1 5U

5.)

 

RanInt# (1, 10, 5)

*(E)(PROB)*(RAND)(Int)

(Generates five random integers from 1 to

1 10 5U

10 and displays the result on the ListAns

 

screen.)

 

 

 

 

* fx-7400GII: (PROB)

SRandom Number Generation in Accordance with Normal Distribution (RanNorm#)

This function generates a 10-digit random number in accordance with normal distribution based on a specified mean ƫ and standard deviation Ʊ values.

RanNorm# (Ʊ, ƫ [,n]) Ʊ > 0 1 n 999

Omitting a value for n returns a generated random number as-is. Specifying a value for n returns the specified number of random values in list form.

2-16