how can i use the random method for a range of numbers not starting at zero? like: 10<=n<=20, or -3<=n<=11.
is this the right/only way (for example one)?
<script type="text/javascript">
noUnrounded=Math.random()*10;
noRounded=Math.round(noUnrounded+10);
document.writeln(noRounded);
</script>
Thanks, appreciate it.


Reply With Quote
Bookmarks