mirror of
https://github.com/wassname/rl_2d_walker.js.git
synced 2026-09-12 12:50:17 +08:00
fix randi
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
var randf = (low, high) => Math.random() * (high - low) + low
|
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) {
|
function deg2rad(deg) {
|
||||||
return deg / 180 * Math.PI
|
return deg / 180 * Math.PI
|
||||||
|
|||||||
Reference in New Issue
Block a user