Update std.js

This commit is contained in:
Namhyeon Go 2022-01-09 01:41:43 +09:00 committed by GitHub
parent 8fe35ac9c5
commit f4fbd2ad1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;