This commit is contained in:
2022-11-09 16:28:24 +05:30
commit 3eb1ef47a7
7 changed files with 1292 additions and 0 deletions
+10
View File
@@ -0,0 +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)
}