# How random is Math.random()

**URL:** <https://forum.kirupa.com/t/how-random-is-math-random/67952>\
**Category:** random\
**Created:** [October 20, 2004, 9:09pm UTC](https://forum.kirupa.com/t/how-random-is-math-random/67952 "2004-10-20T21:09:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![firegambler](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@firegambler](https://forum.kirupa.com/u/firegambler)\
**Post date:** [October 20, 2004, 9:09pm UTC](https://forum.kirupa.com/t/how-random-is-math-random/67952/1 "2004-10-20T21:09:30Z")

</div>

Hi,

I always wondered, how a random gererator is programmed and  
I always doubted that the numbers were random.

So I made a file to test how random Flash’s random numbers are.  
The film generates random numbers, counts their frequency, and shows them in a bar-chart.  
There are 20.000 items generated, so I think that this is fair enough to have a statistically relevant result.  
(see [LINK](http://www.koschitz.org/firegambler/randomtester.html) or attached files)

See for yourself,  
when I try, the numbers have a very high tendency towards one!

What do you think?
