Skip to content

ShuffleCustomTableBlock

14.16

Class Documentation

Edit documentation

A block that puts the entries of a custom table used as a list in a random order. The block swaps the values at list indexes 1 to n in place, and every order has the same chance.

The table must have int keys 1 to n without gaps. If a swap fails because an index is missing, the block reports an error and stops; the swaps that it made before the failure stay.

Properties