[Coco] DECB & OS-9 Game Released

Robert Gault robert.gault at worldnet.att.net
Wed Aug 11 20:13:47 EDT 2004


Mannequin* wrote:

> I do have a question that maybe you could help me on. I've been thinking about
> how to more randomize my random numbers. At this point, I know by heart the
> first 6 rolls of the dice under DECB. I've come up with a small solution
> involving TIMER, but I don't think it's good enough. Basically, if TIMER>1500
> it divides it by 2 until TIMER<=1500. It then throws away the first TIMER number
> of random numbers. Is there a better way to getting more random numbers with
> 
  The usual method is to give the RND seed a more or less random number 
with an initial RND(TIMER). It is very unlikely that the program can be 
started with TIMER returning exactly the same number.

A better method is possible if you use the current date as a seed. A 
hardware clock would make that simple. If not, you can just ask the user 
to enter the date and time, combine the data in some fashion, and feed 
it to RND().




More information about the Coco mailing list