TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: REINIER ZWITSERLOOT
date: 1998-05-19 19:07:00
subject: Re: Is There A Way to....

From: Reinier Zwitserloot 
Subject: Re: Is There A Way to....?
 
uhm, as in  a random variable, or increasing from 1 to 10000?
 
random variable:
 
RANDOMIZE TIMER ' put this at the very start of your program.
 
s=INT(RND*TopValue)+1 'S= anywhere from 1 to TopValue.
 
or to make it loop:
 
FOR s = 1 to 10000
'this code will run 10000 times, s being 1, then 2, then 3, etc.
NEXT s
 
Peter.waller wrote:
>
> I would like to use multiple variables that will change in cirten
> instances....
> do
> s=s+66
> x=s
> loop until s > 10000
> I would like the variable "x" to be different every time...
> is there a way
>
> Pw
>
> Plz Reply!
> --
> Please remove NS from reply address if you
> wish to reply
> in other words reply to peter.waller@btinternet.com
 
--
- 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)

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™.