Random.float()

Return a random floating number between min and max numbers given as parameters

Parameters

NameTypeDescription
1minnumber
2maxnumber

Return value

number

the result

Usage

import {Random} from '@lcluber/type6js';

let float = random.float(2, 6);
console.log(float); //5.45