Added randInt utilities method.