Hi,
Could anyone advise me on how to get a random number between 1 - 50 with an additional 2 decimal numbers between 1 - 99?
e.g. so i could get 1.54 or 23.91
I can find examples of whole numbers, but nothing for items with decimals.
I’m sure there is a nicer way than:
const pounds = (“random_number”, _.random(1, 50));
const pence = (“random_number”, _.random(10, 99));
const paymentAmount = pounds + “.” + pence
Any help is appreciated, thank you