0

What does that mean?

Hello, This is the code I have a problem with Random rnd = new Random(); for (uint ctr = 1;ctr <=10;ctr++) console.WriteLine(

quot;{rnd.Next(),15:NO}"); I don't understand the (15:NO) part, what's the use of this code I found it on this website:: https://docs.microsoft.com/de-de/dotnet/api/system.random.next?view=netframework-4.8

11th Mar 2020, 2:29 PM
Michael
4 Answers
+ 1
i did some experiment with it. 15 means a width of 15 character, if the number less than 15 digits fill the leftside with space. kindalike setw in c++. N0 means format as number with 0 decimal place.
11th Mar 2020, 2:54 PM
Taste
Taste - avatar
+ 1
Hi Michael, Next time please, avoid writing question into the thread's tags.
11th Mar 2020, 3:40 PM
Ipang
+ 1
thanks for the answers
11th Mar 2020, 4:46 PM
Michael