Generation of Random Numbers

Hello,

how can I generate random numbers (integers, no floating point numbers)
using Ruby’s standard library?

Many thanks in advance.

On Saturday 09 September 2006 18:59, Lucas H. wrote:

Hello,

how can I generate random numbers (integers, no floating point numbers)
using Ruby’s standard library?

Many thanks in advance.

rand(max)

For further questions, try searching RDoc Documentation

Alex