/**
 * Represents a pseudo-random number generator.
 */ export class Random { param { Number } max next ( max = Number . MAX_SAFE_INTEGER ) { return Math . floor ( Math . random ( ) * max >= 0 ? max : 0 ) ; } param { Number } min param { Number } max range ( min , max ) { return Math . ceil ( min + Math . floor ( Math . random ( ) * ( max - min ) ) ) ; } param { Number } min param { Number } max param { Number } count normal ( min , max , count = 3 ) { let temp = 0 ; for ( let i = 0 ; i < count ; i ++ ) { temp += this . range ( min , max + 1 ) ; } return temp / count ; } /**
     * Returns a pseudorandom number between 0.0 and 1.0.
     */ sample ( ) { return Math . random ( ) ; } }