Sample task and rand.h