Texas Instruments TI-30XS User Manual - Page 37

factorial, randint

Page 37 highlights

! A factorial is the product of the positive integers from 1 to n. n must be a positive whole number { 69. RAND contains the following options: rand Generates a random real number between 0 and 1. To control a sequence of random numbers, store an integer (seed value) | 0 to rand. The seed value changes randomly every time a random number is generated. randint( Generates a random integer between 2 integers, A and B, where A { randint { B. Separate the 2 integers with a comma. Examples nPr 8 H1 3 < nCr 52 H 2 5 < ! 4 H 3 < STO 4 rand 5 L H " 1 < Copyright © 2006 Texas Instruments Incorporated 37

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44

Copyright © 2006 Texas Instruments Incorporated
37
RAND
contains the following options:
Examples
!
A
factorial
is the product of the positive
integers from 1 to
n
.
n
must be a positive
whole number
{
69.
rand
Generates a random real number between 0
and 1. To control a sequence of random
numbers, store an integer (seed value)
|
0 to
rand
. The seed value changes randomly every
time a random number is generated.
randint(
Generates a random integer between 2
integers,
A
and
B
, where
A
{
randint
{
B
.
Separate the 2 integers with a comma.
nPr
8
H
1
3
<
nCr
52
H
2
5
<
!
4
H
3
<
STO
4
rand
5
L
H "
1
<