I always forget to write a function in ActionScript/JavaScript to output a random number in specific range.
Math.random() * (max - min) + min
If you need a whole number, add Math.floor function to the result.
web 2.0, frontend, ajax, flash, css, dhtml, php
I always forget to write a function in ActionScript/JavaScript to output a random number in specific range.
Math.random() * (max - min) + min
If you need a whole number, add Math.floor function to the result.
Posted in News.
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.