Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. using System;
  2.  
  3. public class Example
  4. {
  5. public static void Main()
  6. {
  7. Random rnd = new Random();
  8. int min_value = 10;
  9. int max_value = 20;
  10.  
  11. Console.WriteLine("n20 random integers from 10 to 20:");
  12. for (int ctr = 1; ctr <= 20; ctr++)
  13. {
  14. Console.Write("{0,6}", rnd.Next(min_value, max_value));
  15. if (ctr % 5 == 0) Console.WriteLine();
  16. }
  17. }
  18. }
  19.  
  20. var r=new Random();
  21. r.Next(int.MinValue,int.MaxValue)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement