unshmettr 0 Posted May 4 (edited) How do I shuffle a float array vex? Edited May 4 by unshmettr Share this post Link to post Share on other sites
animatrix 288 Posted May 4 Hi, Here is one way: int source [ ] = array ( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ); float weights [ ] = array ( ); for ( int i = 0; i < len ( source ); ++i ) weights [ i ] = rand ( i + 345.2342 + i * 567.213 ); int order [ ] = argsort ( weights ); source = reorder ( source, order ); i[]@array = source; 1 Share this post Link to post Share on other sites