math::trulyrandom
From: Daniel Miller (dgmiller_at_u.washington.edu)
Date: 06/24/04
- Next message: Rusty Phillips: "Config::Magic .72 released"
- Previous message: Jami Bradley: "LOAD DATA LOCAL INFILE and Perl DBI/DBD"
- Next in thread: Rusty Phillips: "Re: math::trulyrandom"
- Reply: Rusty Phillips: "Re: math::trulyrandom"
- Reply: Sisyphus: "Re: math::trulyrandom"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Rusty Phillips: "Config::Magic .72 released"
- Previous message: Jami Bradley: "LOAD DATA LOCAL INFILE and Perl DBI/DBD"
- Next in thread: Rusty Phillips: "Re: math::trulyrandom"
- Reply: Rusty Phillips: "Re: math::trulyrandom"
- Reply: Sisyphus: "Re: math::trulyrandom"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|