math::trulyrandom

From: Daniel Miller (dgmiller_at_u.washington.edu)
Date: 06/24/04


Date: Wed, 23 Jun 2004 17:49:33 -0700

Hello,

I'm still trying to figure out modules. I need to get 10,000 random numbers
between 1 and 5936277172. I've been using the rand function but it seems
that the significant digits aren't large enough to account for these large
numbers so if I ask for say 1000 random numbers in this range I get 10
duplicates! The number of duplicates goes up exponentially as I generate
more randoms. Anyway, I'd like to use Math::trulyrandom to generate true
random numbers in this range but I need some help with the syntax. Can
someone give me a short snippet of code to show how I would generate a
random number using this module?

Thanks

Dan Miller



Relevant Pages

  • modules and random numbers
    ... I've been using the rand function but it seems ... The number of duplicates goes up exponentially as I generate ... someone give me a short snippet of code to show how I would generate a ... Dan Miller ...
    (perl.beginners)
  • Re: math::trulyrandom
    ... The number of duplicates goes up exponentially as I generate ... numbers in the required range using only perl's ... rand function. ... sub create_rand { ...
    (comp.lang.perl.modules)
  • Re: Generating Random numbers.
    ... See help on RAND function. ... See John McGimpsey's site for Random numbers with no duplicates. ... Gord Dibben MS Excel MVP ...
    (microsoft.public.excel.misc)
  • Re: VLOOKUP and RAND question
    ... no duplicates in column 1 with differing numbers in ... > Since there is equal probability of the numbers in Column 1 to appear, ... > can I just use the RAND function for Column 2 and skip the first step I ...
    (microsoft.public.excel.misc)
  • INSERT INTO without Duplicates
    ... I'm trying to insert records in a table that has a "no duplicates" ... The following snippet shows what I want to do... ... SQL Server allows this with no reference to a table. ... error code in the VBA code that runs the SQL statement? ...
    (comp.databases.ms-access)