add random position functionality