Skip to content

strShuffle

Randomly shuffles the received string and returns it.

Parameters

NameTypeRequiredDefault
strstringStringstr

Returns

string

String

str

Examples

javascript
strShuffle('abcdefg'); // e.g. 'bgafced'
dart
strShuffle('abcdefg'); // e.g. 'bgafced'
python
strShuffle('abcdefg')  # e.g. 'bgafced'

Released under the MIT License