952
Appendix A: System Routines — Statistics
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_randnorm
Declaration:
void
push_randnorm
(EStackIndex
mean_idx
, EStackIndex
std_idx
)
Category(ies):
Statistics
Description:
Pushes onto the estack a random float given a specified normal
distribution.
Inputs:
mean_idx
— Indexes the input mean.
std_idx
— Indexes the input standard deviation.
Outputs:
None
Assumptions:
None
Side Effects:
May expand expression stack, cause heap compression, or throw an error.
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
None
Example:
This example pushes a list of 10 random numbers using
randnorm (3.0, 1.0).
EStackIndex mean_idx, std_idx;
short i;
push_Float( 3.0 );
mean_idx = top_estack;
push_Float( 1.0 );
std_idx = top_estack;
push_quantum( END_TAG );
for (i = 0; i <= 9; i++)
push_randnorm( mean_idx, std_idx );
push_quantum( LIST_TAG );