Click here to Skip to main content
15,907,183 members
Home / Discussions / C#
   

C#

 
QuestionRe: problem while retrving image from database. Pin
avvaru.murali24-Feb-08 19:40
avvaru.murali24-Feb-08 19:40 
GeneralRe: problem while retrving image from database. Pin
Christian Graus24-Feb-08 20:00
protectorChristian Graus24-Feb-08 20:00 
AnswerRe: problem while image from database. Pin
zeopyrix24-Feb-08 19:39
zeopyrix24-Feb-08 19:39 
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 
Hello friends,
I want to generate unique random numbers like if user want to generate random number between 100 to 500 then the number generated between them should be unique..
But there is a problem that number that i have generated are not unique my code is.

Random b = new Random();
string from = textBox3.Text;
string end = textBox4.Text;
int min= Convert.ToInt32(from);
int max = Convert.ToInt32(end);
for (int i = min; i <= max; i++)
{

listBox1.Items.Add(b.Next(min, max));
}

this code generate random number between min amd max but they are not unique.
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 
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 

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.