# Math.random()

**URL:** <https://forum.kirupa.com/t/math-random/255306>\
**Category:** Uncategorized\
**Created:** [March 20, 2008, 10:01pm UTC](https://forum.kirupa.com/t/math-random/255306 "2008-03-20T22:01:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danhodkinson](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@danhodkinson](https://forum.kirupa.com/u/danhodkinson)\
**Post date:** [March 20, 2008, 10:01pm UTC](https://forum.kirupa.com/t/math-random/255306/1 "2008-03-20T22:01:35Z")

</div>

does math.random return a 0 or a 1, or does it return 0,0.1,0.2…1?  
just curious as im using a code with (math.random()\*10)+5;  
but if it only returns a 0 or a 1 its not that random as it will either be 5 or 15,  
just wondering is all!  
thanks
