UNPKG

@adrianperea/genie.js

Version:

A highly flexible, data-agnostic, and UI-independent Genetic Algorithm Library

4 lines (3 loc) 98 B
export function randBetween(min, max) { return Math.floor(Math.random() * (max - min) + min); }