- Add the Console Application and name RandomStringPro
- Write the method to return string which contains about 100 number characters from 0 to 9.
- Write the method to print out 3 number that their sum is their multiple.
- Example: Input: 1233474414325467321244435213 Output: 123 321 213.
Can you help me? Thank's
Loading
CrishPosted Dec 13, 2010, 5:30 AM
You can refer this following code to solve your issue of to get random in c#.
private int RandomNumber(int min, int max)
{
Random random = new Random();
return random.Next(min, max);
}
I will give you example how to use it.
int returnValue = RandomNumber(7, 20);