fix randi

This commit is contained in:
wassname
2018-12-02 18:22:57 +08:00
parent 93329ebb40
commit f2a35f93dd
+1 -1
View File
@@ -1,5 +1,5 @@
var randf = (low, high) => Math.random() * (high - low) + low
var randi = (low, high) => (Math.random() * (high - low) + low) //1
var randi = (low, high) => Math.round(Math.random() * (high - low) + low) //1
function deg2rad(deg) {
return deg / 180 * Math.PI