Controlling randomness in game design