Re: A86: Random
[Prev][Next][Index][Thread]
Re: A86: Random
In a message dated 10/14/99 10:50:54 Eastern Daylight Time,
snoborder420@yahoo.com writes:
> yeah i had the same problem with it
> what are good for this type of thing?
Scabby's routine and others that don't rely solely on the r register tend to
yield much more random values. Jimmy Mardell's routine works best when
called between _getkey or _get_key calls, so that the time between calls
isn't constant.
>
> --- Andreas Finne <a_finne@hotmail.com> wrote:
> >
> > Jimmy's random routine is very fast, and is great if
> > you just want a single
> > random number every now and then. But if you for
> > instance want to have
> > random coordinates chosen one after the other, it is
> > not as good. I have
> > made a program to try out different random routines
> > by taking random
> > coordinates and put out a sprite at the chosen
> > location. With this routine
> > the results were something like this:
> >
> > 00 0
> > 0 00
> > 0 00
> > 0 0 0
> >
> > All sprites were in an area from the upper left to
> > the lower right. You will
> > get a little better results if you put a 'halt'
> > between every call to the
> > random routine.
> >
> > Andreas Finne
> > a_finne@hotmail.com
> > a_finne@iobox.fi
> >
----
Jonah Cohen
<ComAsYuAre@aol.com>
http://linux.hypnotic.org/~jonah/