import * as seedrandom from 'seedrandom' ; export default class Random { private r : seedrandom . prng ; public constructor ( seed ) { this . r = seedrandom ( seed ) ; } public next ( max ) { return Math . floor ( this . r ( ) * max ) ; } }