randomise threshold