eiffelroom

random

blog

Need pseudo-random generator? use mersenne twister

moriol's picture

I just made available a cluster with a pseudo-random generator that wraps the reference C implementation of Mersenne Twister. Feel free to modify and extend as the wrapping is only here for integers.

It is hosted on Origo!

article

Random numbers

People who are used to other programming languages usually use some kind of rand, rnd or similar function to generate random numbers. This article shows how you can do it in Eiffel.

Generating a random number

The base library's RANDOM class is modeled as a sequence of random numbers.
Syndicate content
about - contact