stacker.news/lib/rand.js

4 lines
86 B
JavaScript

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