stacker.news/lib/rand.js

4 lines
86 B
JavaScript
Raw Normal View History

export function randInRange (min, max) {
return Math.random() * (max - min) + min
}