modified session class to reflect rand