Shuffle array
I notice that there is a sort function for arrays, but not a shuffle function? I started with developing a customized algorithm (based on creating a random number and then using that to pop an array item position to a new array) for this but did something wrong and caused Developer to crash (it did not even allow me to save my ruleset). Before I start again I thought I would first ask here if there is another solution. I am adding this to software wish list as a "shuffle" function in update array would be great.
Was this article helpful?
1 comment
Hi there,
As far as I am aware there is no simple way to do this, but it's certainly a feature we will look into adding to the update array algorithm.
Could you also give us a bit more information on what caused the crash? We would also like to fix this hard crash you experienced while working with customized algorithms.
best regards,
Mike