SHARE
TWEET

Untitled

a guest Jul 19th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top