function generateRandomNumber ( min , max , fractionDigits = 0 ) { const randomNumber = Math . random ( ) * ( max - min ) + min ; return Math . floor ( randomNumber * ( 10 ** fractionDigits ) ) / ( 10 ** fractionDigits ) ; } export { generateRandomNumber } ;