Function Pseudo Random GeneratorFunction to return a pseudo random number.
you can constrict it to a range and provide a seed to step through on the same bar.
thanks to Duyck, for the link.
Random
Alert BatchesThis script lets you separate alerts into batches, and trigger each batch in either sequential order or (pseudo)random order. You can also specify the number of batches being used.
This is helpful when you have alerts to be triggered on every candle, but the number of alerts causes API errors if they are all executed at once.