ADDED RANDOM FUNCTIONALITY