How does the random number generator working on a slotmachine?