0
I need your help in the following situation:
I have a loop that generates a random value from 0 to 400.
I need my function to return at which time the loop generated the number X. (For example, loop 4 generated the number 15 and so on...)
I don’t put any example code, because I don’t know how to do this.
In my studies, I saw that there is a function Random.getstate and Random.setstate, but I don’t know how to use them or if there’s a better solution than them.
I ask for your help.
Thanks in advance.
Perfect! Just what I needed. Thank you very much. .
– Danilo