[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Random Statement
- Subject: Re: Random Statement
- From: "Diego P. Vasquez B." <dvasquez@datasrv.com>
- Date: 1996/11/30
- Newsgroups: comp.sys.apple2
- Organization: Hermanos Vasquez, S.A.
- References: <57lu0m$3po@news.skyenet.net>
Please clarify... I think that maybe I could help, but I did'n quite
understand your message. Maybe the full code to be tried will do.
C'YA!
tbird@skyenet.net wrote in article <57lu0m$3po@news.skyenet.net>...
> I use this, why won't it work...???
>
> 10 let a = Rnd(1)*170
> 20 if a <20 then goto (somewhere)
> 30 if a >150 then goto (somewhere else)
>
> howcome sometimes in the middle of the program the number from the random
> statement is under 20 and over 150. A rnd(20)*150 isn't correct... I'm
> stuck,please help...?
>