Pure Programmer
Blue Matrix


Cluster Map

Project: Random Bytes

Write a program to generate a random stream of bytes. The program should accept three values on the command line: minimum byte value, maximum byte value and the number of bytes to generate. Include assertions to check that the command line min and max are in the range 0-255.

Output
$ swiftc RandomBytes.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 RandomBytes.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