I need your help in the following situation:
-
I have a loop that every random interaction is generated from 0 to 400.
-
I need my function to return at what point in the loop the X number was generated. (For example, loop 4 generated the number 15 and so on ...)
-
In my studies, I saw the random.getstate and random.setstate roles, but I do not know how to use them or if there is a better solution that they.
I ask for your help.
Thank you in advance.