You don't state which series of SugarCube (1.x or 2.x) you are using so I will assume it is the 2.x series, and that you are using the latest 2.10.0 version.
You can use the <Array>.shuffle() method to randomly change the order of the elements within an array, the linked documentation includes an example of how to use it.
Comments
You can use the <Array>.shuffle() method to randomly change the order of the elements within an array, the linked documentation includes an example of how to use it.