orderby c# randomize code example Example: orderby c# randomize var r = new Random(); var shuffled = ordered.OrderBy(x => r.Next());