corrected saving the random item to separate variable