> Below I pasted an assembly source of a random number generator that uses
an
> algorithm based on multiplication with a prime number and XOR-ing with a
> fixed mask.
>
> In its current form, it produces numbers in the range 0..27, but you can
> easily change that. You have to know that the middle bits of the seed are
the
> most "random", so use those for the result.
Thanks Maarten. And yes, I knew that the middle bits of R were most 'random'
but it just wasn't random enough for me.

Arjan.


****
Problems? contact [EMAIL PROTECTED] See also http://www.faq.msxnet.org/
****

Reply via email to