algo 5

Algorithm with dynamic threshold, if mean for the previous 5 tti’s is
worse than threshold - pick another random.