UNPKG

project-lvl1-s132

Version:

Brain Games

13 lines (10 loc) 269 B
const getRandomInt = limit => Math.floor(Math.random() * limit); const getRandomPairInt = (limit) => { const a = Math.floor(Math.random() * limit); const b = Math.floor(Math.random() * limit); return { a, b }; }; export { getRandomInt, getRandomPairInt, };