You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

10 lines
331 B

const {randomU32} = require('../randomU32');
test('works', () => {
for (let i = 0; i < 1000; i++) {
const min = Math.round(Math.random() * 0xFFFFFF);
const max = min + Math.round(Math.random() * 0xFFFFFF);
const num = randomU32(min, max);
expect(num >= min && num <= max).toBe(true);
}
});