Random position util method