Home > Net >  Memorizing words program to realize random or fixed 10 words???????
Memorizing words program to realize random or fixed 10 words???????

Time:09-19

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:

refer to the second floor v1848573189 response:
read from the database, but how to make every time read only ten?

SQL: select top 10 * from table order by newid ()

CodePudding user response:

SQL all don't know, how to write the program?

CodePudding user response:

Random sort take 10 before

Fixed words can be customised fields above index

CodePudding user response:

Simple point is taken out after to a data source, turn to the list, after having a random number from the list in bai

CodePudding user response:

refer to 6th floor u014480075 response:
simple point is taken out, to the data source to the list, after having a random number from the list in bai

One thousand you have article 10 w data in the database or a database operation well in this take is better,
  •  Tags:  
  • C#
  • Related