CASTI-89 TITANIUM (STATS/LIST EDITOR APP) · CALC89
randBin(
Returns a random number of successes from a binomial distribution, or a list of them.
Syntax
randBin(n, p[, #Trials])
- Group
- Probability
- Arguments
- Takes the number of trials n, the success probability p and an optional number of repetitions.
- Availability
- Included
- Origin
- On the TI-89 Titanium this command comes with the preinstalled Stats/List Editor app
Example
| Input | Result |
|---|---|
| dim(randBin(10,1/2,5)) | 5 |
Typing dim(randBin(10,1/2,5)) on the home screen and pressing ENTER returns 5.
Keystrokes on the TI-89 Titanium
2NDMATH1▶▶7
The same key sequence inserts randBin( in Calc89, and the AI tutor shows it step by step on the on-screen keypad.
Related commands
- randInt(Returns a random integer between two bounds, or a list of them.
- randNorm(Returns a random number from a normal distribution, or a list of them.
- randSamp(Draws a random sample of elements from a list.
- RandSeedSets the seed of the random number generator, so a sequence of random results can be repeated exactly.
- nCr(Returns the number of combinations, the ways to choose r items from n when order does not matter.
- nPr(Returns the number of permutations, the ways to arrange r items chosen from n when order matters.
- rand(Returns a random number between 0 and 1, or a list of such numbers.