Is It Random?

Test to see how random PHP and javascript are.

Trials: 1000000

PHP rand():
0 99,718
1 99,932
2 100,622
3 100,100
4 99,779
5 100,408
6 99,588
7 100,177
8 99,884
9 99,792

PHP mt_rand():
0 100,397
1 99,684
2 100,023
3 99,402
4 100,394
5 99,798
6 100,300
7 99,827
8 100,175
9 100,000

Javascript Math.random():