Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

linq pick random element

var rand = new Random();
var user = users[rand.Next(users.Count)];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linq #pick #random #element
ADD COMMENT
Topic
Name
3+1 =