How to select random item from IEnumerable using LINQ
I’m trying to come up a LINQ SELECT statement in C# to select random items from specific object instead of ordered items. how do i translate below syntax to random select
random = _dbase.OrderBy(x => x.company).Take(1000);
Add comment