[vcf-midatlantic] Random numbers

Evan Koblentz evan at vcfed.org
Fri Apr 7 13:05:09 EDT 2017


Got a line in my game to pick random whole numbers between 1-38. I use 
these numbers to determine the secret spot a player must find.

It says:

R=INT(RND(1)*38)+1

I read about RND in the Apple II programming manual but I determined the 
exact code from a Google search (stack overflow method...)

Problem: it's only giving me even numbers. No odd numbers. Why? And how 
do I fix that?

________________________________
Evan Koblentz, director
Vintage Computer Federation
a 501(c)(3) educational non-profit

evan at vcfed.org
(646) 546-9999

www.vcfed.org
facebook.com/vcfederation
twitter.com/vcfederation
instagram.com/vcfederation



More information about the vcf-midatlantic mailing list