export const randomInRange = ( min , max ) => Math . floor ( Math . random ( ) * ( max - min + 1 ) ) + min ; export const randomChoice = ( choices ) => choices [ randomInRange ( 0 , choices . length - 1 ) ] ;