Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- double[] Mess = FillRandomArray(n);
- }
- static double[] FillRandomArray(int n)
- {
- double[] array = new double[n];
- Random rand=new Random();
- for(int i=0;i<n;i++)
- {
- array[i] = rand.Next(-50, 50);
- }
- return array;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement