Ziomnexpl

pętla losulosulosu C#

Nov 20th, 2019
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using System;
  2.  
  3. namespace pentla_test
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             //maszyna losujaca
  10.             int i;
  11.             Random rnd = new Random();
  12.             for (i=1;i<100;i++)
  13.             {
  14.                 Console.Write(rnd.Next(3)+2 + " ");                
  15.             }
  16.             Console.ReadKey();
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment