Added a "shuffle" function, to set a random variable order