Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1
- {
- class valami
- {
- public static Random rand = new Random();
- public int age;
- public valami()
- {
- this.age = rand.Next(1, 100);
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- valami elso = new valami();
- Console.WriteLine(elso.age);
- valami masodik = new valami();
- Console.WriteLine(masodik.age);
- }
- }
- }
Add Comment
Please, Sign In to add comment