# randomReorder(a)

Scrambles the order of a string or array.

### Syntax

o_randomReorder(a)
  a: array or string - the set of values to be scrambled
  return: same as original but scrambled into a random order

### Usage

Use this when you have a set of values but would like to scramble the order of those values.

### Location

menu: veeos ==> Math ==> Arrays ==> randomReorder

library: mathLib

### Example

o_randomReorder("this string") returns any string such as "rgnts_hstii" that has all the same characters but in a random order

o_randomReorder( [1,2,3 4] ) could return [1,4,3,2] or [4,1,3,2] or any number of other random reordering.

### Notes

This should work with any data type and scalar, 1D or 2D arrays.

### Reference

### Dependencies

### Supported On

VEE 7.0+, all platforms

### See Also

randomInt

© 2015-2017. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 24 February 2017 09:07.