473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

C++ random number generator

Pat
I am looking for a good random number generator (such as Uniform, Normal
distributions). It is better if RNG is written in C++.
Thanks.
Jul 22 '05 #1
5 3471
Pat wrote:
I am looking for a good random number generator (such as Uniform, Normal
distributions). It is better if RNG is written in C++.
Thanks.


Try

http://www.boost.org/libs/random/index.html
Best

Kai-Uwe Bux
Jul 22 '05 #2
"Pat" <Pa*@Pat.com> wrote in message news:41********@rain.i-cable.com...
I am looking for a good random number generator (such as Uniform, Normal
distributions). It is better if RNG is written in C++.
Thanks.


The boost random number library implements some of the best
http://www.boost.org/libs/random/

-:|:-
AngleWyrm
the C++ hat random container
http://home.comcast.net/~anglewyrm/hat.html
Jul 22 '05 #3
"Pat" <Pa*@Pat.com> wrote in message news:41********@rain.i-cable.com...
I am looking for a good random number generator (such as Uniform, Normal
distributions). It is better if RNG is written in C++.
Thanks.


Follow my sig to the UVS library.

--
Cy
http://home.rochester.rr.com/cyhome/
Jul 22 '05 #4
Pat
Thank you.

"Pat" <Pa*@Pat.com> ¦b¶l¥ó news:41********@rain.i-cable.com ¤¤¼¶¼g...
I am looking for a good random number generator (such as Uniform, Normal
distributions). It is better if RNG is written in C++.
Thanks.

Jul 22 '05 #5
Hi,
I am looking for a good random number generator (such as Uniform, Normal
distributions). It is better if RNG is written in C++.


I assume you something close to "real" random.
In this case, u should look for the crypto services at your OS's sdk.
And the best is, if u r using an Intel chipset, use its hardware rng -
http://www.google.com/search?q=intel+rng

Yakov
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Brandon Michael Moore | last post by:
I'm trying to test a web application using a tool written in python. I would like to be able to generate random values to put in fields. I would like to be able to generate random dates (in a...
10
by: Sonoman | last post by:
Hi all: I am trying to write a simple program that simulates asking several persons their birth day and it counts how many persons are asked until two have the same birth day. The problem that I...
3
by: Joe | last post by:
Hi, I have been working on some code that requires a high use of random numbers within. Mostly I either have to either: 1) flip a coin i.e. 0 or 1, or 2) generate a double between 0 and 1. I...
70
by: Ben Pfaff | last post by:
One issue that comes up fairly often around here is the poor quality of the pseudo-random number generators supplied with many C implementations. As a result, we have to recommend things like...
5
by: Peteroid | last post by:
I know how to use rand() to generate random POSITIVE-INTEGER numbers. But, I'd like to generate a random DOUBLE number in the range of 0.0 to 1.0 with resolution of a double (i.e., every possible...
104
by: fieldfallow | last post by:
Hello all, Is there a function in the standard C library which returns a prime number which is also pseudo-random? Assuming there isn't, as it appears from the docs that I have, is there a...
12
by: Jim Michaels | last post by:
I need to generate 2 random numbers in rapid sequence from either PHP or mysql. I have not been able to do either. I get the same number back several times from PHP's mt_rand() and from mysql's...
13
by: porterboy76 | last post by:
If you only use a 32 bit seed for a random number generator, does that mean you can only ever produce a maximum of 2^32 (approx 4 billion) different sequences? What about the Mersenne Twister,...
11
TTCEric
by: TTCEric | last post by:
This will be original. I promise. I cannot get the random number generator to work. I tried seeding with Date.Now.Milliseconds, it still results in the same values. What I have are arrays...
16
by: raylopez99 | last post by:
For the public record. RL public void IterateOne() { Random myRandom = new Random(); //declare Random outside the iteration for (int j = 0; j < Max; j++) {
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.