示例#1
0
 public static DynamicPublishedContent Random(this DynamicPublishedContentList source)
 {
     return(new DynamicPublishedContent(source.OrderByRandom().First()));
 }
示例#2
0
 public static DynamicPublishedContentList Random(this DynamicPublishedContentList source, int max)
 {
     return(new DynamicPublishedContentList(source.OrderByRandom().Take(max)));
 }