Picking a random member of a Type List

BlitzMax Forums/BlitzMax Beginners Area/Picking a random member of a Type List

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.