The great god for some source code, no idea
CodePudding user response:
If the word you read from the database, you need the following SQL statement
Select top 10 * from timu order by newid ()
If you have a query or query cache in memory. Please use the following linq statement
Var random 10=list. Orderby (& gt; Guid. NewGuid ()). Take (10) tolist ();
CodePudding user response:
Read from the database, but how to make every time read only 10?
CodePudding user response: