Yesterday, the best answer is: 1-ceil(cos(x)). (Contributed by fire. Good Job!)