Advertisement
g3kko

cd.cs

Nov 24th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace feleviFeladat
  7. {
  8.     class Cd
  9.     {
  10.         int[] szamok = new int[10];
  11.  
  12.         public int[] Szamok
  13.         {
  14.             get { return szamok; }
  15.         }
  16.  
  17.         static Random rand = new Random();
  18.  
  19.         public Cd()
  20.         {
  21.             for (int i = 0; i < szamok.Length; i++)
  22.             {
  23.                 szamok[i] = rand.Next(120, 481);
  24.             }
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement