TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: STEVEN MUSUMECHE
date: 1998-05-19 11:27:00
subject: Re: Randomize Timer

From: "Steven Musumeche" 
Subject: Re: Randomize Timer
 
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
>
 
 
*** QwkNews (tm) v2.1
 * [TN71] alt.lang.powerbasic  POWER_BAS Gateway
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/560.2)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.