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
$ javac -Xlint RandomChars.java
$ java -ea RandomChars 0 255 100
o®§Þhemó2éÿ5<øí0^År$&PÐ-éa¤°Ì¶¹ÏÌ[ô,-øÚÁä(FlÍ·t&yÇÚÜ*+ØôÃfNVù"u3xgßr,aâ0=æx¥%Iwá1 Êÿ¢à5ÞïÖòhúÝÎb·¿ær$ javac -Xlint RandomChars.java
$ java -ea RandomChars 940 969 100
ΰςέγδρυμιμφτζδέίυδςυηεηΰαλκβίχίνίοξήμωθπμωξτήσνζθνίγδλίεσπιτηαυαήιΰλεδαμδνπηναίαψνυφοέχπάυιλξψιέαέαζ