mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-06-18 02:59:04 +00:00
Update std.js
This commit is contained in:
parent
8fe35ac9c5
commit
f4fbd2ad1c
|
@ -152,17 +152,9 @@ var StdEventableObject = function() {
|
|||
};
|
||||
};
|
||||
|
||||
var getRandomInt = function(min, max) {
|
||||
min = Math.ceil(min);
|
||||
max = Math.floor(max);
|
||||
return Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
}
|
||||
|
||||
exports.VERSIONINFO = "Standard Lib (std.js) version 0.3";
|
||||
exports.global = global;
|
||||
exports.require = global.require;
|
||||
|
||||
exports.Event = StdEvent;
|
||||
exports.EventableObject = StdEventableObject;
|
||||
|
||||
exports.getRandomInt = getRandomInt;
|
||||
|
|
Loading…
Reference in New Issue
Block a user