fixed random monster movement with better random number generator