javascript random decimal code example
Example 1: javascript get random floating number
const randomFloat = (min, max) => Math.random() * (max - min) + min;
Example 2: javascript random number not decimal
a_number = 10
Math.floor(Math.random() * a_number)