function randRange(min, max) { return Math.random() * (max - min) + min; } function rad(degree) { return degree * Math.PI / 180; }