Make error message more helpful and forbid random()