added addRandom method