Click here to Skip to main content
16,004,927 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionNeed help in converting a code snippet from C# to VB.NET. Pin
Slow Learner27-Apr-06 15:47
Slow Learner27-Apr-06 15:47 
AnswerRe: Need help in converting a code snippet from C# to VB.NET. Pin
atregent27-Apr-06 17:38
atregent27-Apr-06 17:38 
AnswerRe: Need help in converting a code snippet from C# to VB.NET. Pin
Kevin McFarlane28-Apr-06 11:40
Kevin McFarlane28-Apr-06 11:40 
QuestionAny easy way : Random Number Range Pin
Chatura Dilan27-Apr-06 15:40
Chatura Dilan27-Apr-06 15:40 
AnswerRe: Any easy way : Random Number Range Pin
Christian Graus27-Apr-06 17:51
protectorChristian Graus27-Apr-06 17:51 
GeneralRe: Any easy way : Random Number Range Pin
Chatura Dilan27-Apr-06 18:45
Chatura Dilan27-Apr-06 18:45 
GeneralRe: Any easy way : Random Number Range Pin
Christian Graus27-Apr-06 19:00
protectorChristian Graus27-Apr-06 19:00 
AnswerRe: Any easy way : Random Number Range Pin
Roy Heil28-Apr-06 4:03
professionalRoy Heil28-Apr-06 4:03 
You can try something like this:

1: with a for loop, fill your Range with the numbers 1-16.
2: with another for loop, increment through the Range, and swap the number at that position with a number at a random position in the Range.

After one pass of step two, your array should be fairly random, but to make sure, you can repeat step two as many times as you like. I use this method to sort cards in a deck. I usually repeat step 2 three times.


Roy.
AnswerRe: Any easy way : Random Number Range Pin
Chatura Dilan28-Apr-06 15:06
Chatura Dilan28-Apr-06 15:06 
QuestionProblem with Deployment, Win Installer, Setup Pin
HamCoder27-Apr-06 12:00
HamCoder27-Apr-06 12:00 
AnswerRe: Problem with Deployment, Win Installer, Setup Pin
Andrew Bleakley27-Apr-06 12:35
Andrew Bleakley27-Apr-06 12:35 
GeneralRe: Problem with Deployment, Win Installer, Setup Pin
HamCoder28-Apr-06 9:40
HamCoder28-Apr-06 9:40 
QuestionStarting a process from a Windows Service Pin
dlarkin7727-Apr-06 5:22
dlarkin7727-Apr-06 5:22 
AnswerRe: Starting a process from a Windows Service Pin
H@is@here27-Apr-06 23:30
H@is@here27-Apr-06 23:30 
AnswerRe: Starting a process from a Windows Service Pin
spaceus27-Apr-06 23:56
spaceus27-Apr-06 23:56 
QuestionFind File Owner Using .NET 2.0 Pin
is251rd27-Apr-06 5:12
is251rd27-Apr-06 5:12 
AnswerRe: Find File Owner Using .NET 2.0 Pin
kasik27-Apr-06 5:32
kasik27-Apr-06 5:32 
GeneralRe: Find File Owner Using .NET 2.0 Pin
is251rd27-Apr-06 7:52
is251rd27-Apr-06 7:52 
QuestionNew to Programming Pin
mcb1227-Apr-06 4:46
mcb1227-Apr-06 4:46 
AnswerRe: New to Programming Pin
mr_1234527-Apr-06 7:07
mr_1234527-Apr-06 7:07 
GeneralRe: New to Programming Pin
Guffa27-Apr-06 8:38
Guffa27-Apr-06 8:38 
AnswerRe: New to Programming Pin
Guffa27-Apr-06 8:32
Guffa27-Apr-06 8:32 
AnswerRe: New to Programming Pin
Garner T27-Apr-06 15:12
Garner T27-Apr-06 15:12 
GeneralRe: New to Programming Pin
J4amieC27-Apr-06 22:53
J4amieC27-Apr-06 22:53 
AnswerRe: New to Programming Pin
Chatura Dilan27-Apr-06 16:01
Chatura Dilan27-Apr-06 16:01 

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.