This gives me a random number between 1-99.
new Random().Next(1,99)
Possible to get this working with strings ?
new Random().Next(Apple,Banana,Pear)
I appreciate one is integer and the other is string.
Can quite easily achieve by doing it in a list where I can assign a random number between 0-2 (zero index base) then read list item with this random number giving me a random fruit.
Just wondering if its possible with new Random().Next(Apple,Banana,Pear)