Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get any random item in array c#

Object[] obj = { "this", "that", "those" };
Random rn = new Random();
Object ob = rn.Next(0, obj.Length);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #item #array
ADD COMMENT
Topic
Name
7+5 =