[mercury-users] random.m: little warning

Martin Stein ms40 at inf.tu-dresden.de
Fri Oct 16 11:00:15 AEST 1998


Hi,

Thomas Charles CONWAY wrote:
> Richard A. O'Keefe, you write:
> > It would actually be useful to have several pseudo-random generators in
> > the Mercury library; switching from one to another _may_ reveal a flaw.
> 
> This is where ML's module system would be really good, though we can
> simulate the behaviour with type classes. It'd be good to define a
> standard interface and support multiple implementations.

Yes, that would be good. My own implementation is not as fast as your simple
generator.
I don't have any material at hand to suggest an appropriate triple A,C,M which
fits into 31 bits. But there should be one.

Martin Stein



More information about the users mailing list