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.

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 10049
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: 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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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

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.