quick fix for createRandom