javascript random float between 1 and 1000 code example Example: javascript random number not decimal a_number = 10 Math.floor(Math.random() * a_number)