C
C
captanjones2019-06-23 10:27:48
random numbers
captanjones, 2019-06-23 10:27:48

What should be written in parentheses when creating a random number generator in C#?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace SoloLearn
{
  class Program
  {
    static void Main(string[] args)
    {
    Random rnd = new Random(1);
    int x = rnd.Next();
    int y = rnd.Next();
    Console.WriteLine(x);
    Console.WriteLine(y);
    }
  }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question