Added Randomize and Clear buttons
Fixed a bug in the Clear function