shufflelist()?
BlitzMax Forums/BlitzMax Programming/shufflelist()?
| ||
How would you create a shufflelist function? to shuffle it randomly of course |
| ||
Have a field within each object in the list containing a random integer, and sort it by that field with your own Compare() method? |
| ||
This asked the same question. I would be tempted to convert to array, swap indexes around, convert back to list. |