Skip to content


random number in specific range

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.