working gun generation in rndm direction