Perturbatio #1 keep a counter incrementing each time and when the counter is the same as the precalculated random number, use Exit to break out of the list and m is set to the random type. Or just use ValueAtIndex.