daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest May 17th, 2018 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  class program
  2.     {
  3.         static void Main(string[] args)
  4.         {
  5.             Console.Write("Please enter a number of flips: ");
  6.             int a = Convert.ToInt32(Console.ReadLine());
  7.             int[] nums = new int[a];
  8.             Random rand = new Random();
  9.             for (int i = 0; i <= a+1; i++)
  10.             {
  11.                 int b = rand.Next(2);
  12.                 nums[i] = b;
  13.                 Console.WriteLine(nums[i]);
  14.             }
  15.             Console.ReadKey();
  16.         }
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