cgserver 13.2.19 → 13.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -444,7 +444,7 @@ class core {
444
444
  totalProbability = eval(probabilitys.join("+"));
445
445
  }
446
446
  if (totalProbability > 1) {
447
- random = _.random(totalProbability);
447
+ random = _.random(totalProbability - 1);
448
448
  }
449
449
  else {
450
450
  random = Math.random();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "13.2.19",
3
+ "version": "13.2.20",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",