Adding details defination for getRandom function.