Click here to Skip to main content
15,921,884 members
Home / Discussions / C#
   

C#

 
QuestionReaderWriterLock Pin
the_jat15-Jan-09 2:30
the_jat15-Jan-09 2:30 
AnswerRe: ReaderWriterLock Pin
Luc Pattyn15-Jan-09 2:53
sitebuilderLuc Pattyn15-Jan-09 2:53 
AnswerRe: ReaderWriterLock Pin
Jon Rista16-Jan-09 6:57
Jon Rista16-Jan-09 6:57 
AnswerRe: ReaderWriterLock Pin
Mark Salsbery16-Jan-09 7:50
Mark Salsbery16-Jan-09 7:50 
QuestionDrawing cards from a deck Pin
Tony Pottier15-Jan-09 2:18
Tony Pottier15-Jan-09 2:18 
AnswerRe: Drawing cards from a deck Pin
CPallini15-Jan-09 2:41
mveCPallini15-Jan-09 2:41 
GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 4:01
Tony Pottier15-Jan-09 4:01 
AnswerRe: Drawing cards from a deck Pin
benjymous15-Jan-09 2:50
benjymous15-Jan-09 2:50 
Ok, I just quickly implemented what you describe, populating a List<int> with the numbers 0-51, and removing a random entry from the list 5 times.

I did this in a big loop that repeats the operation a million times, and it took roughly a second.

So unless you're planning on implementing your own List, rather than using the Generics one, I wouldn't worry about speed

Help me! I'm turning into a grapefruit!
Buzzwords!


GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 4:03
Tony Pottier15-Jan-09 4:03 
GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 4:16
Tony Pottier15-Jan-09 4:16 
GeneralRe: Drawing cards from a deck Pin
benjymous15-Jan-09 4:55
benjymous15-Jan-09 4:55 
GeneralRe: Drawing cards from a deck Pin
Guffa15-Jan-09 5:56
Guffa15-Jan-09 5:56 
AnswerRe: Drawing cards from a deck [modified] Pin
Luc Pattyn15-Jan-09 5:38
sitebuilderLuc Pattyn15-Jan-09 5:38 
GeneralRe: Drawing cards from a deck Pin
Guffa15-Jan-09 6:32
Guffa15-Jan-09 6:32 
GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 6:40
Tony Pottier15-Jan-09 6:40 
AnswerRe: Drawing cards from a deck [modified] Pin
Luc Pattyn15-Jan-09 6:42
sitebuilderLuc Pattyn15-Jan-09 6:42 
GeneralRe: Drawing cards from a deck Pin
Guffa15-Jan-09 6:55
Guffa15-Jan-09 6:55 
AnswerRe: Drawing cards from a deck [modified] Pin
Luc Pattyn15-Jan-09 6:59
sitebuilderLuc Pattyn15-Jan-09 6:59 
GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 7:27
Tony Pottier15-Jan-09 7:27 
AnswerRe: Drawing cards from a deck [modified] Pin
Luc Pattyn15-Jan-09 7:31
sitebuilderLuc Pattyn15-Jan-09 7:31 
AnswerRe: Drawing cards from a deck Pin
Henry Minute15-Jan-09 12:34
Henry Minute15-Jan-09 12:34 
GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 12:42
Tony Pottier15-Jan-09 12:42 
QuestionWildcards Pin
boiDev15-Jan-09 2:15
boiDev15-Jan-09 2:15 
AnswerRe: Wildcards Pin
SeMartens15-Jan-09 2:24
SeMartens15-Jan-09 2:24 
AnswerRe: Wildcards [modified] Pin
EliottA15-Jan-09 2:52
EliottA15-Jan-09 2:52 

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.