How to generate random numbers

0
Hi all, can anybody tell me how to generate random numbers? In my case, I would like to get 15,000 numbers of type integer, which I want to save in an attribute of an entity. Thanks for supporting me. Cheers  
asked
1 answers
2

Hi,

You need to use the random() function call.

As this returns a decimal between 0 and 1, you then need to multiply it by 15000 and round() the result to turn it into an integer.

Hope this helps.

answered