A good way to test uniform random number

Hi, i have got some generators i need to test. These produce uniform random numbers. I found only corrcoef() and runstest() are related to a uniform distribution, the others (like Kolmogorov Smirnov, chisquared etc) test the normality of a distribution of numbers. A possibility may be to convert uniformly distribuited numbers to normal distr numbers (there is erfinv function) so i can use the other tests. Any idea?

Answers (1)

Not sure what the real goal is here. There are lots of uniform random number generator tests that you can use, and you will get lots of hits with a simple web search. Here is one of them:

3 Comments

I'm not so stupid. I meant test on matlab....
I wasn't trying to imply anything about you ... I just wasn't sure what you were asking. So you want to know what are all of the uniform (or normal etc) random number generator test routines supplied with MATLAB? I.e., you want to know what MATLAB already has, not what you can write with MATLAB?

Sign in to comment.

Asked:

on 22 Mar 2018

Commented:

on 22 Mar 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!