Skip to content

Instantly share code, notes, and snippets.

@xrrocha
Last active December 16, 2020 18:13
Show Gist options
  • Save xrrocha/10b588952988091cf73f85c15dffbd18 to your computer and use it in GitHub Desktop.
Save xrrocha/10b588952988091cf73f85c15dffbd18 to your computer and use it in GitHub Desktop.
code block for README-17
// Shuffle inner letter array
for (var i = start; i < end; i++) {
// Choose a random index in region
final var rndIdx =
start + random.nextInt(length);
// Swap current/random chars
final var save = result[rndIdx];
result[rndIdx] = result[i];
result[i] = save;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment