Skip to content

Instantly share code, notes, and snippets.

@MasFlam
Created October 2, 2020 12:52
Show Gist options
  • Save MasFlam/7edc1dfe895fb4a60ee34f14597fde75 to your computer and use it in GitHub Desktop.
Save MasFlam/7edc1dfe895fb4a60ee34f14597fde75 to your computer and use it in GitHub Desktop.
Script outputting n random valid UTF-8 characters
#!/usr/bin/env julia
function main(outlen:: Integer)
chars = Vector{Char}(undef, outlen)
for i in 1:outlen
chars[i] = rand(Char)
end
print(String(chars))
end
main(parse(Int, ARGS[1]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment