const MIN_NUMBER = - 10000 ; const MAX_NUMBER = 10000 ; export class Random { public static number ( ) { return Math . random ( ) * ( MAX_NUMBER - MIN_NUMBER ) + MIN_NUMBER ; } public static enumValue ( ... args ) { return args [ Math . floor ( Math . random ( ) * args . length ) ] ?? 0 ; } public static string ( prefix ) { return prefix + Math . random ( ) . toString ( 20 ) . substr ( 2 , 6 ) ; } public static boolean ( ) { return ! Math . round ( Math . random ( ) ) ; } }