export class Rnd { public static float ( min , max ) { return Math . random ( ) * ( max - min ) + min ; } public static bool ( chance = 0.5 ) { return Math . random ( ) < chance ; } public static sign ( chance = 0.5 ) { return Math . random ( ) < chance ? 1 : - 1 ; } public static bit ( chance = 0.5 ) { return Math . random ( ) < chance ? 1 : 0 ; } public static integer ( min , max ) { return Math . floor ( Math . random ( ) * ( max - min ) + min ) ; } }