The correct way to randomize a list of elements is to go through each element from first to list and swap it with a random element between that element and the last element in the list. It might seem counterintuitive to do it that way instead of any element from the beginning to the end of the list, but it's actually right. Think of it instead as, you first choose the first element from anywhere in the list. Then, you choose the second element only from what's left - the first element has already been chosen. And so on.
However, I'm not actually sure of the correct way to swap two elements in a list in BlitzMax. I feel like I want to make an array of the TLink objects and then mess with them in order to do it, but there's probably an official way.
However, I'm not actually sure of the correct way to swap two elements in a list in BlitzMax. I feel like I want to make an array of the TLink objects and then mess with them in order to do it, but there's probably an official way.