UNPKG

fast-check

Version:

Property based testing framework for JavaScript (like QuickCheck)

8 lines (7 loc) 253 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.runIdToFrequency = runIdToFrequency; const safeMathLog = Math.log; function runIdToFrequency(runId) { return 2 + ~~(safeMathLog(runId + 1) * 0.4342944819032518); }