Simplify random value initialization.