RandomAPI / Randomuser.me-old-source

[Deprecated] PHP source for Random User Generator - Please take a look at the new Node version
https://randomuser.me
137 stars 48 forks source link

Significant gender imbalance #58

Closed MartinBurnsSV closed 8 years ago

MartinBurnsSV commented 8 years ago

Small dataset, I know, but only 1/12 returned results were women.

We can do better than this.

keitharm commented 8 years ago

How large is your sample size to come to the conclusion that 11/12 of the results are male and 1/12 are female?

Regardless of the size of our dataset, gender is determined by a random number between 0 and 1. 1 = male and 0 = female. The server uses the Mersenne Twister PRNG for generating all of the random values as well as rng-tools to increase the available entropy.

Sometimes you get 11 heads in a row and sometimes you get 50/50 heads and tails.