Pair of Vintage Old School Fru
/ /

XtScript Function: str_shuffle

Randomly shuffle a string.

XtScript str_shuffle is a function that will process a string and shuffle the characters that composed the string then return the result.

XtScript str_shuffle function basic syntax:

<!--parser:xtscript-->
	call str_shuffle $val=...
<!--/parser:xtscript-->

Learn XtScript str_shuffle function from examples

Shuffle / randomize characters in a string using XtScript str_shuffle function.

- Code:
<!--parser:xtscript-->
	var $string = ABCDe 12345 !@#$%
	var $shuffle = call str_shuffle $val=$string
 
	print <p>String: $string</p>
	print <p>Shuffled: $shuffle</p>

	print <p>Reload your browser to change the Shuffled value above...</p>
<!--/parser:xtscript-->
To view the live demo of the code snippet above, you can visit this page: XtScript shuffle function demo page.