Re: A83: random integer


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

Re: A83: random integer




ionRandom:
	Generates an eight-bit random number.
	Input:	b=upper bound
	Output: a=answer (0<=a<b)
		b=0
	Destroys af b

   ld b,59
   call ionRandom
   inc a

TheDungflinga@aol.com wrote:
> 
> is there any way to generate a random integer, something like the basic
> command randint(1,60)?
> 
> Thanks
> "The Dungflinga"

-- 
Scott "_Wrath_" Dial
wrath@calc.org
ICQ#3608935
Member of TCPA - tcpa.calc.org
_____________________________________________
NetZero - Defenders of the Free World
Click here for FREE Internet Access and Email
http://www.netzero.net/download/index.html



References: