Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello Wise Ones, I had this module at one time or another that assisted with the generation of blocks of random number. You would basically call something like
@array = something->randomInt(Amt2Fetch,Low,High);
And it would return the Amt2Fetch between Low and High, all arguements were Ints, and all numbers returned were ints. The module also allowed the calling of regular decimal random numbers in sets, etc... Does anyone know the name of this module? I've been looking for it, and I dont want to re-invent the wheel. Any help would be appricieated

Replies are listed 'Best First'.
Re: Random Numbers
by eric256 (Parson) on Feb 19, 2005 at 22:22 UTC

    You could just use something like

    sub randomInt { map { int(rand($_[2] - $_[1] + 1) + $_[1])} (1) x ($_[ +0] || 1); }


    ___________
    Eric Hodges
Re: Random Numbers
by sh1tn (Priest) on Feb 19, 2005 at 20:30 UTC
Re: Random Numbers
by mpeters (Chaplain) on Feb 19, 2005 at 22:35 UTC
    Data::Random? It let's you do random sets of numbers, letters, words, etc.