Click here to Skip to main content
15,925,181 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: XML Serialization Pin
nlarson1119-May-09 7:41
nlarson1119-May-09 7:41 
QuestionDynamically Loading Image in Crystal Report Pin
Ovais Memon18-May-09 20:46
Ovais Memon18-May-09 20:46 
QuestionRandom Numbers Pin
GregoryWB18-May-09 15:08
GregoryWB18-May-09 15:08 
AnswerRe: Random Numbers Pin
_Damian S_18-May-09 15:25
professional_Damian S_18-May-09 15:25 
GeneralRe: Random Numbers Pin
GregoryWB18-May-09 15:39
GregoryWB18-May-09 15:39 
AnswerRe: Random Numbers Pin
Luc Pattyn18-May-09 15:38
sitebuilderLuc Pattyn18-May-09 15:38 
GeneralRe: Random Numbers Pin
GregoryWB18-May-09 15:42
GregoryWB18-May-09 15:42 
GeneralRe: Random Numbers Pin
Luc Pattyn18-May-09 15:58
sitebuilderLuc Pattyn18-May-09 15:58 
GregoryWB wrote:
not sure how to remove 1 Element


Well, use a real collection such as a List<int> and fill it with all N relevant numbers.
Run your random generator for the range [0, N-1] and use that number as an index into the List, copy that number AND remove it from the list (which now has one fewer element, so adjust your random.Next call next time you call it).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Random Numbers Pin
_Damian S_18-May-09 17:13
professional_Damian S_18-May-09 17:13 
AnswerRe: Random Numbers Pin
TheMrProgrammer19-May-09 3:02
TheMrProgrammer19-May-09 3:02 
QuestionDesign Logic for Simple Application Pin
Nielvh18-May-09 12:42
Nielvh18-May-09 12:42 
AnswerRe: Design Logic for Simple Application Pin
_Damian S_18-May-09 14:10
professional_Damian S_18-May-09 14:10 
GeneralRe: Design Logic for Simple Application Pin
Nielvh18-May-09 20:14
Nielvh18-May-09 20:14 
GeneralRe: Design Logic for Simple Application Pin
_Damian S_18-May-09 20:45
professional_Damian S_18-May-09 20:45 
AnswerRe: Design Logic for Simple Application Pin
Mycroft Holmes18-May-09 16:23
professionalMycroft Holmes18-May-09 16:23 
Questionproblem of save in excel Pin
nazimghori18-May-09 5:52
nazimghori18-May-09 5:52 
AnswerRe: problem of save in excel Pin
Ray Cassick18-May-09 8:39
Ray Cassick18-May-09 8:39 
AnswerRe: problem of save in excel Pin
Ray Cassick18-May-09 8:42
Ray Cassick18-May-09 8:42 
AnswerRe: problem of save in excel Pin
Dave Kreskowiak18-May-09 8:46
mveDave Kreskowiak18-May-09 8:46 
QuestionRegistering an exe as a service. Pin
draghu18-May-09 4:21
draghu18-May-09 4:21 
AnswerRe: Registering an exe as a service. Pin
Dave Kreskowiak18-May-09 6:55
mveDave Kreskowiak18-May-09 6:55 
GeneralRe: Registering an exe as a service. Pin
Jon_Boy18-May-09 8:13
Jon_Boy18-May-09 8:13 
GeneralRe: Registering an exe as a service. [modified] Pin
draghu20-May-09 20:01
draghu20-May-09 20:01 
GeneralRe: Registering an exe as a service. Pin
Dave Kreskowiak27-May-09 1:36
mveDave Kreskowiak27-May-09 1:36 
GeneralRe: Registering an exe as a service. Pin
draghu27-May-09 2:41
draghu27-May-09 2:41 

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.