Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as C# by Edelner ( 3 years ago )
using System;

namespace AlgorytmyIStrukturyDanych.Lab1
{
    class LosowaTablica
    {
        public int PobierzLiczbęElementówTablicy()
        {
            Console.Write("Podaj liczbę elementów tablicy: ");
            int liczbaElementówTablicy = int.Parse(Console.ReadLine());

            return liczbaElementówTablicy;
        }

        public void GenerujLosowąTabliceTypuDouble(int liczbaElementówTablicy)
        {
            double[] tablica = null;

            Random random = new Random();

            for (int i = 0; i < liczbaElementówTablicy; i++)
            {
                tablica = new double[liczbaElementówTablicy];
                tablica[i] = random.NextDouble();               
            }
        }
    }
}

 

Revise this Paste

Your Name: Code Language: