Update cd.java

Added randomize and more stuff to the main that tests randomize.