Fix crash sometimes with default.generate_ore

Fix PseudoRandom max<min sometimes causing crashes.