addes Alex's randTick function