"Efrain" <Ef****@discussions.microsoft.com> wrote in message
news:DC**********************************@microsof t.com...
Can somebody help me out? I need the code to generate a random number
between
1 and 100.
Scott gave you VB code. Here's the C# equivalent.
Random myR = new Random();
int x = myR.Next(1,101);
The C++ code would depend on the type of project, i.e. the .NET Random class
would be appropriate in a .NET WinForms app, but not in a MFC app.
What language are you using?
--
Peter [MVP Visual Developer]
Jack of all trades, master of none.