Adding details definition for getRandom function.