[TIB] Re: randseed on TI-89
[Prev][Next][Index][Thread]
[TIB] Re: randseed on TI-89
Think of the seed as an index into a table of pseudo random numbers.
The table is static, that is seeding with the same value will always
return the same sequence of random numbers. The conventional way to
seed a random number generator is to use the current time from an
internal clock as the seed, unfortunately the 89/92+ doesn't have a
real time clock...
This seems to leave us with no method to seed the random number
generator in a non-deterministic way, since after a reset any
algorythm used will produce the same seed value.
> I suppose a better question to ask would be how seeding works, what it means
> to seed the rand num generator, and a good way to make formulas for seeding.
>
>
>
>
> ---------- The Fishy One's Infinite Wisdom #10: "Catholic school religion
> class is like mom's home cooking. Both leave a bad aftertaste and give you
> heartburn." New wisdom every week!
>
>
>
> >From: "Idiot"
> >Reply-To: ti-basic@lists.ticalc.org
> >To:
> >Subject: [TIB] Re: randseed on TI-89
> >Date: Wed, 19 Sep 2001 16:43:29 -0500
> >
> >
> >It seeds the random number generator... hehehe
> >Computers suck at making random numbers, but there are some formulas
> >that spit out numbers that seem random. When you seed the random, you
> >are telling it where to start.
> >
> >Try this:
> >Enter Randseed(1)
> >Then rand() a bunch of times. I bet you get a list like this:
> >
> >.745560772771
> >.855900597109
> >.225360061685
> >.469229187981
> >
> >at least I did every time I seeded it with 1.
> >
> >--Matthew
> >
> >
> >-----Original Message-----
> >From: ti-basic-bounce@lists.ticalc.org
> >[mailto:ti-basic-bounce@lists.ticalc.org] On Behalf Of Matthew Waters
> >Sent: Wednesday, September 19, 2001 1:22 PM
> >To: ti-basic@lists.ticalc.org
> >Subject: [TIB] randseed on TI-89
> >
> >Could anyone tell me what the randseed command on the TI-89 does, and
> >how
> >itworks?
> >
> >
> >---------- The Fishy One's Infinite Wisdom #10: "Catholic school
> >religion
> >class is like mom's home cooking. Both leave a bad aftertaste and give
> >you
> >heartburn." New wisdom every week!
> >
> >------------------------------------------------------------------------
> >----
> >Get your FREE download of MSN Explorer at http://explorer.msn.com[1]
> >
> >
> >--- Links ---
> >1 'http://go.msn.com/bql/hmtag_itl_EN.asp'
> >
> >
> >
>
>
> ----------------------------------------------------------------------------
> Get your FREE download of MSN Explorer at http://explorer.msn.com[1]
>
>
> --- Links ---
> 1 'http://go.msn.com/bql/hmtag_itl_EN.asp'
Follow-Ups:
References: