Created
October 2, 2020 12:52
-
-
Save MasFlam/7edc1dfe895fb4a60ee34f14597fde75 to your computer and use it in GitHub Desktop.
Script outputting n random valid UTF-8 characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode 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