Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Please Help...


  • Please log in to reply
5 replies to this topic

#1 Wolfy87

Wolfy87

  • Members
  • 414 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:England
  • Local time:11:34 PM

Posted 26 August 2008 - 12:50 PM

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...

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:05:34 PM

Posted 26 August 2008 - 12:52 PM

Do you know anything about functions yet, because that is what you are trying to use here?

#3 Wolfy87

Wolfy87
  • Topic Starter

  • Members
  • 414 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:England
  • Local time:11:34 PM

Posted 26 August 2008 - 01:14 PM

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#...

#4 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:05:34 PM

Posted 26 August 2008 - 03:26 PM

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?

#5 Wolfy87

Wolfy87
  • Topic Starter

  • Members
  • 414 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:England
  • Local time:11:34 PM

Posted 26 August 2008 - 05:24 PM

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. :thumbsup:
Thank you

Edited by Wolfy87, 26 August 2008 - 05:39 PM.


#6 Wolfy87

Wolfy87
  • Topic Starter

  • Members
  • 414 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:England
  • Local time:11:34 PM

Posted 26 August 2008 - 05:47 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users