export function createRandomStr ( ) { return Math . random ( ) . toString ( ) . substr ( 2 ) ; } export function createRandomNum ( max , min = 0 ) { return Math . floor ( Math . random ( ) * ( max - min + 1 ) + min ) ; }