js-randomness-predictor
Version:
Predict Math.random output in Node, Chrome, and Firefox
10 lines (9 loc) • 388 B
JavaScript
export const DEFAULT_NUM_PREDICTIONS = 10;
export const PREDICTOR_ENVIRONMENTS = ["firefox", "chrome", "v8"];
export class SequenceNotFoundError extends Error {
constructor(message = "'--sequence' is only optional when '--environment' is 'v8'.") {
super(message);
this.name = "SequenceNotFoundError";
Object.setPrototypeOf(this, new.target.prototype);
}
}