Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
GeneralRe: Randomly Pin
Mycroft Holmes15-Dec-16 13:59
professionalMycroft Holmes15-Dec-16 13:59 
GeneralRe: Randomly Pin
Eddy Vluggen16-Dec-16 3:51
professionalEddy Vluggen16-Dec-16 3:51 
AnswerRe: Randomly Pin
Patrice T15-Dec-16 12:27
mvePatrice T15-Dec-16 12:27 
khalid khalidos wrote:
how to randomly the Question from Databse Without repetion

Looks like you need to use the same algorithm as the one used to shuffle a deck of cards.
1) make an array the size of your number of questions, fill it with question numbers.
2) draw a position in possible ones, swap with last question, repeat without the last place.
for usage: get questions numbers from array in order.

This way you shuffle 52 questions with 51 draws, no repetition.
Patrice

“Everything should be made as simple as possible, but no simpler.” Albert Einstein

Questionhow to create dropdownlist to select country than state is automaticaly selected Pin
Member 1290578714-Dec-16 22:40
Member 1290578714-Dec-16 22:40 
AnswerRe: how to create dropdownlist to select country than state is automaticaly selected Pin
OriginalGriff14-Dec-16 22:46
mveOriginalGriff14-Dec-16 22:46 
QuestionConvert .mats file into .text file with unicode encoding Pin
ERAJEET8813-Dec-16 20:12
ERAJEET8813-Dec-16 20:12 
QuestionRe: Convert .mats file into .text file with unicode encoding Pin
Richard MacCutchan13-Dec-16 22:07
mveRichard MacCutchan13-Dec-16 22:07 
AnswerRe: Convert .mats file into .text file with unicode encoding Pin
Jochen Arndt13-Dec-16 22:38
professionalJochen Arndt13-Dec-16 22:38 
QuestionPascal to C# Convert Pin
Pavlex413-Dec-16 7:59
Pavlex413-Dec-16 7:59 
AnswerRe: Pascal to C# Convert Pin
Richard Deeming13-Dec-16 8:06
mveRichard Deeming13-Dec-16 8:06 
GeneralRe: Pascal to C# Convert Pin
Pavlex413-Dec-16 8:12
Pavlex413-Dec-16 8:12 
AnswerRe: Pascal to C# Convert Pin
OriginalGriff13-Dec-16 8:12
mveOriginalGriff13-Dec-16 8:12 
GeneralRe: Pascal to C# Convert Pin
PIEBALDconsult13-Dec-16 9:06
mvePIEBALDconsult13-Dec-16 9:06 
GeneralRe: Pascal to C# Convert Pin
NotPolitcallyCorrect13-Dec-16 9:26
NotPolitcallyCorrect13-Dec-16 9:26 
GeneralRe: Pascal to C# Convert Pin
Daniel Pfeffer13-Dec-16 20:24
professionalDaniel Pfeffer13-Dec-16 20:24 
GeneralRe: Pascal to C# Convert Pin
OriginalGriff13-Dec-16 21:41
mveOriginalGriff13-Dec-16 21:41 
QuestionRe: Pascal to C# Convert Pin
Gerry Schmitz13-Dec-16 22:27
mveGerry Schmitz13-Dec-16 22:27 
QuestionHow to Draw tracking Line of plane in Radar - C# Pin
Khant Nyar Kyaw13-Dec-16 7:51
Khant Nyar Kyaw13-Dec-16 7:51 
AnswerRe: How to Draw tracking Line of plane in Radar - C# Pin
OriginalGriff13-Dec-16 8:06
mveOriginalGriff13-Dec-16 8:06 
AnswerRe: How to Draw tracking Line of plane in Radar - C# Pin
Dave Kreskowiak13-Dec-16 9:00
mveDave Kreskowiak13-Dec-16 9:00 
AnswerRe: How to Draw tracking Line of plane in Radar - C# Pin
V.13-Dec-16 19:01
professionalV.13-Dec-16 19:01 
AnswerRe: How to Draw tracking Line of plane in Radar - C# Pin
Gerry Schmitz13-Dec-16 22:20
mveGerry Schmitz13-Dec-16 22:20 
Questionfingerprint transaction system Pin
Member 1290211313-Dec-16 2:45
Member 1290211313-Dec-16 2:45 
AnswerRe: fingerprint transaction system Pin
OriginalGriff13-Dec-16 2:46
mveOriginalGriff13-Dec-16 2:46 
AnswerRe: fingerprint transaction system Pin
Pete O'Hanlon13-Dec-16 2:50
mvePete O'Hanlon13-Dec-16 2:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.