Is It Random?

Test to see how random PHP and javascript are.

Trials: 1000000

PHP rand():
0 100,253
1 100,356
2 99,971
3 100,581
4 99,559
5 99,998
6 99,891
7 99,754
8 99,688
9 99,949

PHP mt_rand():
0 100,382
1 100,134
2 100,230
3 99,882
4 99,841
5 99,836
6 99,727
7 99,428
8 100,299
9 100,241

Javascript Math.random():