Advertisement
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 ConsoleApplication28
- {
- class Program
- {
- static Random rnd = new Random();
- static int[] t = new int[50];
- static void Main(string[] args)
- {
- feltolt(t, -10, 8);
- Console.ReadLine();
- }
- static void feltolt(int[] t, int a, int f)
- {
- for (int i = 0; i < t.Length; i++)
- {
- t[0] = 20;
- t[i+1] = rnd.Next(a, f);
- Console.Write("{0}, ", t[i]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement