Added random projection code.