[A83] Re: Randomization


[Prev][Next][Index][Thread]

[A83] Re: Randomization




The calculator's generator is always giving the same results when I use
randInt( and I don't like to use it.
I remember writing a simple slot machine in Qbasic seven years ago. The
player inputs a number before running the slot machine. It seemed me silly
at that time, but now I understand it better. It was the same reason.

--- David Phillips <david@acz.org> wrote:
> You need something that will change.  For example, you might display a
> title
> screen when a program starts.  Start a timer when the screen is
> displayed,
> and note how long it takes for the user to press a key.  This value can
> be
> used as the starting seed value for the random number generator.

=====
I'm a moderator of http://www.ti-programmers.com forum.
Brain: an apparatus with which we think we think.
Beyin: onu kullanarak düşündüğümüzü düşündüğümüz bir alet.
  -Ambrose Bierce


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com




References: