[vcf-midatlantic] Random numbers

Evan Koblentz evan at vcfed.org
Fri Apr 7 23:03:29 EDT 2017


> If you just generate a bunch of random numbers without doing anything to
> the number (like INT() or multiplying it) what do you get?

Applesoft generates a decimal value between 0 and 1 if you don't INT or 
multiply it. You can't do RND(number bigger than 1); it's a syntax error.

If I remove the INT (which rounds down to .0) but keep the 
multiplication, then I get evens and odds.

I added the INT back because I need whole numbers. But I left out the 
+1. Now it works as R=INT(RND(1)*38) .... thinking aloud, I have no idea 
why the +1 was there! :)



More information about the vcf-midatlantic mailing list