Constructing the RandomList class