[mercury-users] Failing at typeclasses.

Peter Ross pro at missioncriticalit.com
Sun Feb 18 22:34:48 AEDT 2007


On 2/18/07, Julian Fondren <ayrnieu at gmail.com> wrote:
> On 2/18/07, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
> >               % Return the maximum integer that can be
> >               % returned by this random number generator.
> >               %
> >           pred max(int, RNG, RNG),
> >           mode max(out, in,  out) is det
> >       ].
>
> Why is this useful?
>
If you want a random float you need to know the upper bound of the
random number generator.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list