Anand - completed randomizing logic for string and number
Anand - no need to cast Object to String.