Doing a lot of randomize practice today. Let's look into another example to build World's simplest letter or word shuffler in go programming.

Method: Shuffle Words

  • This function uses strings.Fields to split the sentence into words
  • Then use the randomizer to shuffle the words

Example Output For shuffleWords():

have today from go started I lang learning

Method: Shuffle Characters

  • This function uses strings.Split to split the sentence into letters
  • Then use the randomizer to shuffle the characters

Example Output For shuffleCharacters():

esge iamnanlldof  dvontogae  ra rytagthI r