Advertisement
Guest User

Untitled

a guest
May 17th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  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.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement