I think I understand the basics of what this is doing (See attached). This is from the While Loop tutorial.
Basically the while loop is giving a random integer with a random number up to 1000. Than the condition is that it doesn’t go over has to be less than 20 total loops so it doesn’t go through infinite loops. For future use though, how does the actual integer variable play into the equation.
Is it considered the “X” in the equation i.e. whatever the math problem needs it to be? I guess obviously, but how will I know I need an integer vs a float or another variable?
Most importantly, when actually developing my own content, how would I implement while loop or looping in general? Opening doors, QTE?
A lot to unpack, so any help appreciated!