From: Reinier Zwitserloot
Subject: Re: Randomize Timer
won't be all that random. Randomize timer is meant to be an initializing
call- take it out of the loop.
Steven Musumeche wrote:
>
> Try this:
>
> for i = 1 to 10
> randomize timer
> ? int((rnd(10)*1))
> next i
>
> This should print 10 random numbers between 0 and 10. Sorry for any typos.
>
> --
> Steven Musumeche
> cecil@aisp.net
>
> Paulo Jorge de O. C. Matos (PDestroy) wrote in message
> ...
> >Hi,
> >I have read that when for example we make randomize timer and then
> calculate
> >a random nunbver using RND the computer uses a formula to calculate it
> using
> >the seconds of the inner clock. Anyonw knows what's the formula or how the
> >computer gets the number?
> >
> >Regards,
> >Paulo Jorge Matos
> >
--
- Ray Zwitserloot.
R.Zwitserloot@antispam.BTInternet.com
Change the E-mail address to reply!
----------------------------------------------------
*** QwkNews (tm) v2.1
* [TN71] alt.lang.powerbasic POWER_BAS Gateway
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/560.2)
|