Advertisement
Guest User

Untitled

a guest
Dec 1st, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication28
  7. {
  8. class Program
  9. {
  10. static Random rnd = new Random();
  11. static int[] t = new int[50];
  12. static void Main(string[] args)
  13. {
  14. feltolt(t, -10, 8);
  15. Console.ReadLine();
  16. }
  17. static void feltolt(int[] t, int a, int f)
  18. {
  19. for (int i = 0; i < t.Length; i++)
  20. {
  21. t[0] = 20;
  22. t[i+1] = rnd.Next(a, f);
  23. Console.Write("{0}, ", t[i]);
  24. }
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement