The RNG function needs a value sent to it and returns a result. In the Hot/Cold thread, you are only changing the value being sent to the RNG function for Hot/Cold.
The RNG function has 2 different ways it can be used:
- Sending it a value, and it will give a result of (- value <= result < value)
- Sending it a value and it will give a result of ( 0 <= result < value)
Hot/Cold uses the first way, Checking is using it the second way. The RNG function is used all over the place.