beautypg.com

Sharp EL-9900 User Manual

Page 57

background image

47

Chapter 3: Basic Calculations — Basic Keyboard

3 rndCoin

rndCoin

[(number of trial)]

Returns a specified number of random integers to simulate a coin

flip: 0 (head) or 1 (tail). The size of the list (i.e., how many times

the virtual coin is thrown) can be specified. (The same as rndInt

(0, 1, number of times))

Example

• Make the calculator flip a

virtual coin 4 times.

M C 3 ( 4
) E

4 rndDice

rndDice

[(number of trial)]

Returns specified number of random integers (1 to 6) to simulate

rolling dice. The size of the list (i.e., how many times the die is

thrown) can be specified. (The same as rndInt (1, 6, number of

times))

Example

• Make the calculator roll a virtual die 11 times.

M C 4 ( 11 ) E

5 nPr

Returns the total number of different arrangements (permuta-

tions) for selecting “r” items out of “n” items.

n

P

r

=

n!

(n

r)!

Example

• How many different ways can

4 people out of 6 be seated in

a car with four seats?

6

M C 5 4 E

031_049_chapter3_en

02.8.23, 1:51 PM

47