random number in specific range
_global.randomNumRange = function(min:Number, max:Number) {
var r = Math.floor(Math.random()*(max-min+1))+min
return r;
};
return random positive integer in specific range.
About this entry
You’re currently reading “random number in specific range,” an entry on multiplicité
- Published:
- Friday, August 26th, 2005 at 4:20 pm
- This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.0 Korea.
- Author:
- vizualizer
- Category:
- techne
No comments
Jump to comment form | comments rss