Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. static void Main(string[] args)
  2. {
  3. int n = int.Parse(Console.ReadLine());
  4. double[] Mess = FillRandomArray(n);
  5. }
  6. static double[] FillRandomArray(int n)
  7. {
  8. double[] array = new double[n];
  9. Random rand=new Random();
  10. for(int i=0;i<n;i++)
  11. {
  12. array[i] = rand.Next(-50, 50);
  13. }
  14. return array;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement