Gotta change system

This commit is contained in:
root
2022-11-16 11:19:39 +08:00
parent 2a5761a7a4
commit 03c5d79c5e
6 changed files with 289 additions and 291 deletions
+9 -9
View File
@@ -1,10 +1,10 @@
exports.GetRandomPort =function(min,max){
var port = randomIntFromInterval(min,max);
// console.log("min:"+min+", max:"+max+" = "+port);
return port;
};
function randomIntFromInterval(min, max) { // min and max included
return Math.floor(Math.random() * (max - min + 1) + min)
exports.GetRandomPort =function(min,max){
var port = randomIntFromInterval(min,max);
// console.log("min:"+min+", max:"+max+" = "+port);
return port;
};
function randomIntFromInterval(min, max) { // min and max included
return Math.floor(Math.random() * (max - min + 1) + min)
}