Click here to Skip to main content
15,906,708 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem while retriving image from database. Pin
Giorgi Dalakishvili24-Feb-08 20:18
mentorGiorgi Dalakishvili24-Feb-08 20:18 
GeneralExecuting SSis package from C# Pin
tasumisra24-Feb-08 19:18
tasumisra24-Feb-08 19:18 
Questionindeterminate progress bar Pin
veerbala24-Feb-08 18:57
veerbala24-Feb-08 18:57 
GeneralRe: indeterminate progress bar Pin
Christian Graus24-Feb-08 19:08
protectorChristian Graus24-Feb-08 19:08 
QuestionUnique random numbers Pin
D i x y24-Feb-08 18:55
D i x y24-Feb-08 18:55 
GeneralRe: Unique random numbers Pin
Christian Graus24-Feb-08 19:07
protectorChristian Graus24-Feb-08 19:07 
GeneralRe: Unique random numbers Pin
D i x y24-Feb-08 19:52
D i x y24-Feb-08 19:52 
GeneralRe: Unique random numbers Pin
Christian Graus24-Feb-08 20:16
protectorChristian Graus24-Feb-08 20:16 
It's incredibly straightforward, do you own any C# books ? You should buy one and work through it.

The steps are

List<int> list = new List<int>();

for(int 100;n<=500;++n)
{
list.Add(n);
}

Then when you want a number, generate a randon number between 0 and list.Count - 1. Grab that value and then remove it from the list.

Christian Graus - Microsoft MVP - C++

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralHold the timer tick event before processing Pin
CodingLover24-Feb-08 18:26
CodingLover24-Feb-08 18:26 
GeneralRe: Hold the timer tick event before processing Pin
Christian Graus24-Feb-08 18:29
protectorChristian Graus24-Feb-08 18:29 
GeneralRe: Hold the timer tick event before processing Pin
CodingLover24-Feb-08 18:46
CodingLover24-Feb-08 18:46 
GeneralRe: Hold the timer tick event before processing Pin
Christian Graus24-Feb-08 19:04
protectorChristian Graus24-Feb-08 19:04 
GeneralRe: Hold the timer tick event before processing Pin
CodingLover24-Feb-08 19:11
CodingLover24-Feb-08 19:11 
Generalwindows TO vista!! Pin
rowdy_vc++24-Feb-08 18:01
rowdy_vc++24-Feb-08 18:01 
GeneralRe: windows TO vista!! Pin
Christian Graus24-Feb-08 18:12
protectorChristian Graus24-Feb-08 18:12 
GeneralRe: windows TO vista!! Pin
rowdy_vc++24-Feb-08 18:41
rowdy_vc++24-Feb-08 18:41 
GeneralRe: windows TO vista!! Pin
Christian Graus24-Feb-08 18:43
protectorChristian Graus24-Feb-08 18:43 
GeneralRe: windows TO vista!! Pin
rowdy_vc++24-Feb-08 19:12
rowdy_vc++24-Feb-08 19:12 
GeneralRe: windows TO vista!! Pin
rowdy_vc++24-Feb-08 20:00
rowdy_vc++24-Feb-08 20:00 
GeneralRe: windows TO vista!! Pin
Christian Graus24-Feb-08 20:53
protectorChristian Graus24-Feb-08 20:53 
GeneralRe: windows TO vista!! Pin
rowdy_vc++24-Feb-08 21:01
rowdy_vc++24-Feb-08 21:01 
GeneralRe: windows TO vista!! Pin
Christian Graus24-Feb-08 21:24
protectorChristian Graus24-Feb-08 21:24 
GeneralRe: windows TO vista!! Pin
rowdy_vc++24-Feb-08 21:56
rowdy_vc++24-Feb-08 21:56 
GeneralRe: windows TO vista!! Pin
Colin Angus Mackay24-Feb-08 22:53
Colin Angus Mackay24-Feb-08 22:53 
GeneralRe: windows TO vista!! Pin
Colin Angus Mackay24-Feb-08 22:50
Colin Angus Mackay24-Feb-08 22: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.