When i tried simulating the following code there is a very strange behavior the reg in actually displays values bigger than the range give in the system function $urandom_range