Check out example codes for "random value in array c#". It will help you in understanding the concepts better.

Code Example 1

Random random = new Random();
 int value = random.Next(0, array.Length);
 Console.Write(array[value]);

Learn ReactJs, React Native from akashmittal.com