62
Chapter 3: Manual Calculations
int÷ Executes an integer division and returns its quotient and remainder.
Example
• Get a quotient and a remainder
of 50 ÷ 3.
50
int÷ 3
E
* Quotient value is set to Ans
memory and remainder is not
stored.
remain Returns the remainder of a division.
Example
• Obtain the remainder when 123
is divided by 5.
1 2 3
remain 5
E
rndCoin
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.
rndCoin
(
4
)
E
rndDice
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.
rndDice
(
11
) E
Note:
The random functions, (
rndCoin and rndDice)will generate
different numbers every time.
Содержание el-9950
Страница 1: ......
Страница 11: ...10 Chapter 1 Getting Started To open the cover When in use When not in use Using the Hard Cover ...
Страница 266: ......