Changed to 2 clause BSD license, and added Random object