For example, to simulate a lotto 6-49 draw:
randSamp(seq(x,x,1,49),6,1)
The 1 at the end means without replacement. If you want replacement, change the 1 to 0.
Marc Garneau
> --
> To post to this group, send email to tins...@googlegroups.com
> To unsubscribe send email to tinspire+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com.au/group/tinspire?hl=en-GB?hl=en-GB
> The tns documents shared by group members are archived at
> https://sites.google.com/site/tinspiregroup/classroom-news/welcome-abouttime
Thanks,
Al
> https://sites.google.com/site/tinspiregroup/classroom-news/welcome-abouttime
That only works if you are not using CX's or touchpad CAS HH.
randIntNoRep is part of 2.55MP.
Is there a newer OS than 2.55MP? I cannot find any reference to it online? What is its version number.
Thanks,
Al
> https://sites.google.com/site/tinspiregroup/classroom-news/welcome-abouttime
Al
-------------------------
Albert Coons
al_c...@bbns.org
Buckingham Browne & Nichols School
Gerry's Landing Road
Cambridge, MA 02138
(617) 800-2264
AP Statistics Web Site: www.bbn-school.org/us/math/ap_stats
randintnorep(lowerbound, upperbound)
for example:
randintnorep(6,8)
enter
{6,8,7}
enter
{8,6,7}
etc.
On the other hand, the Nspire randSampl(list,#trials,0) lets you sample without replacement from any data list:
For example:
randSamp({11,22,369},3,1)
{22,11,369}
or
randSamp({"Tom","Bill","Judy"},3,1)
{Judy, Tom, Bill}
Since we often sample data other than sequences of integers in stats, I like the Nspire implementation a lot more.
Al
PS. We do have a slick way to sample without replacement from any list in the TI-84. A Kludge but elegant. Can supply the algorithm if anyone cares.
Al