+ 1

How can i shuffle a text?

I want a text that shuffle the letters before to complete the word. How can i do it?

19th Jan 2017, 11:08 AM
Spillo
Spillo - avatar
1 Answer
+ 4
There's not a function for that, and need to create your own. Create an array of chars from it, and use a for loop to manipulate the order. You'll also need the Math.random() function to assist you, using its length.
19th Jan 2017, 2:22 PM
Mark Foxx
Mark Foxx - avatar