add createRandom method