Pure Programmer
Blue Matrix


Cluster Map

Project: Random Characters

Write a program to generate a random stream of Unicode characters. The program should accept three values on the command line: minimum character codepoint, maximum character codepoint and the number of characters to generate. Be sure not to output control characters in the specified range. Include assertions to check that the command line min and max are in the range 0-0x1ffff.

Output
$ swiftc RandomChars.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation) $ swiftc RandomChars.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution