Help - Search - Members - Calendar
Full Version: Please Help...
BleepingComputer.com > Software > Programming
   
Wolfy87
i already have this code to genterate a random number within the set paramiters in C#...

private int RandomNumber(int min, int max)
{
Random random = new Random();
return random.Next(min, max);
}

I want it to be between 100000 and 999999, and i also need it to be put into label1...but i dont know how and dont know where else to get help...
groovicus
Do you know anything about functions yet, because that is what you are trying to use here?
Wolfy87
no i am new to the C# language and i also need to know how to Use exturnal Shelling in C# for i know how to use it in VB but not in C#...
groovicus
Start with this:
http://www.meshplex.org/wiki/C_Sharp/Calling_Functions

It isn't going to do any good to just tell you how to use the code, because the next time that you need to use a function, you still will not understand how to do it. Is it really necessary to use a function?
Wolfy87
Ok then, but it would be much more useful if i understood what i was reading. I am sorry but im going to need some more help, and once again i am on my psp. smile.gif
Thank you
Wolfy87
I am hopefully going to take a collage corse in programing in the neer future so maby i will stop bugging you as much (emphasis on the "As") and maby start helping others. I get very depressed at school so programing is my sort of newly found comfort zone, i love it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.