473,386 Members | 1,702 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,386 software developers and data experts.

random number generator

Hi all,

I want to get some random numbers that follows normal distribution with
given mean ( not 0, but for instance, 0.5) and standard deviation. Does
anybody happen to know where I can get the open source C program that
generates such random numbers? Thanks in advance.

Michel

Nov 13 '05 #1
4 10059
Michel <mi****@263.net> wrote:
I want to get some random numbers that follows normal distribution with
given mean ( not 0, but for instance, 0.5) and standard deviation. Does
anybody happen to know where I can get the open source C program that
generates such random numbers? Thanks in advance.


Beautiful FAQ, so true and right,
Waiting on this useful site!
Who to such answers would turn his back?
FAQ of the newsgroup, beautiful FAQ!
FAQ of the newsgroup, beautiful FAQ!
Beau-ootiful FA-AQ!
Beau-ootiful FA-AQ!
FA-AQ of the ne-e-ewsgroup,
Beautiful, beautiful FAQ!

Beautiful FAQ! How much doest show
That a poster has to know!
Who would not give all else for a q-
uotation from our beautiful FAQ?
Quotation from our beautiful FAQ?
Beau-ootiful FA-AQ!
Beau-ootiful FA-AQ!
FA-AQ of the ne-e-ewsgroup,
Beautiful, beauti-FUL FAQ!
In other words, <http://www.eskimo.com/~scs/C-faq/q13.20.html>.

Richard

[ Walks off in the distance, singing: ]

FA-AQ of the ne-e-ewsgroup,
Beautiful, beautiful FAQ!
Nov 13 '05 #2
In <3F**************@263.net> Michel <mi****@263.net> writes:
I want to get some random numbers that follows normal distribution with
given mean ( not 0, but for instance, 0.5) and standard deviation. Does
anybody happen to know where I can get the open source C program that
generates such random numbers? Thanks in advance.


What was your C language question?

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 13 '05 #3
Richard Bos <rl*@hoekstra-uitgeverij.nl> spoke thus:
Beautiful, beautiful FAQ!


Easily your most inventive FAQ redirect, nice one ;)

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 13 '05 #4
> Beautiful FAQ, so true and right,
Waiting on this useful site!
Who to such answers would turn his back?
FAQ of the newsgroup, beautiful FAQ!
FAQ of the newsgroup, beautiful FAQ!
Beau-ootiful FA-AQ!
Beau-ootiful FA-AQ!
FA-AQ of the ne-e-ewsgroup,
Beautiful, beautiful FAQ!


Thanks a lot! :-D

Nov 13 '05 #5

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.