Updates of Generate Random

Updated Generate Random