pseudo-random-numbers

Deciding test statistic and distribution for a random number test

Hi, How do u decide on a test statistic while developing a test for random number testing and its likely distribution. How do u calculate and decide on the formula for calculating a p value for the test statistics distribution. TIA ...

Linear congruential generator: How important is setting seed?

I'm learning about linear congruential generator in an algorithms and data structures course. After thinking about RNG implementation we've been using (a=429493445, c=907633385, mod=4294967296, X is _uint32), one thing came to my mind: Program has a function for setting seed. How important would that function be in C and C++? Here's ...

Algorithm for generating normally distributed random values in C?

Possible Duplicate: Converting a Uniform Distribution to a Normal Distribution Hello. I'd like to know of any algorithm implemented in C which can take a random value between 0 and 1, the mean and standard deviation and then return a normally distributed result. I have too little brainpower to figure this out for myself righ...

Properly implementing C#'s random number generator

I'm trying to generate two random numbers, one for a row and one for a column. In this exact instance, it is a multidimensional array with 4 rows and 4 columns. Thus, the number generator can use the values 0 to 3 for both row and column. I must also make sure that there are no duplicate points, so if [0,0] is chosen the first time, [0...

How to get really random number?

Possible Duplicates: Understanding randomness Fastest implementation of a true random number generator in C# Hello. Function: Random rand = new Random(); rand.Next() It gives pseudo random numbers based on time in seconds. How to get really random numbers? I mean totally random not based on system time and some algorithm....

Generate Random Weighted value

Edit: I've rewritten the question in hopes that the goal is a little clearer. This is an extended question to this question here, and I really like the function provided in this answer. In the answer above, one is able to set the probability of hitting an extreme, with higher numbers producing a higher probability of getting lower numb...