added function to randomize
start of SoC