Question:Which of the following is the correct way to randomize a generic list of 75 numbers using C#? 

A Random random = new Random(); List<object> products= GetProducts(); products.OrderBy(product => random.Next(products.Count)); 

B Random random = new Random(); List<object> products= GetProducts(); products.Randomize(product => random.Next(products.Count)); 

C Random random = new Random(); List<object> products= GetProducts(); products.Randomize(products.Count); 

D Random random = new Random(); List<object> products= GetProducts(); products.Reverse(product => random.Next(products.Count)); 

+ Answer
+ Report
Total Preview: 855

Copyright © 2024. Powered by Intellect Software Ltd