Answers for "random number in vs code console"

C#
1

random number in vs code console

//The systems in use//
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace *Name of program*
{
  	//The file name your editing//
    class *File name*
    {
    	// The Main static void(with indicators)
        static void Main(string[] args)
        {
        	//This is generating the random number//
            Random random = new Random();

			//This is putting the random number inside a int//
             int *Name of variable* = random.Next(*limit to RNG number*);
             int RandomY = random.Next(*limit to RNG number*);
Posted by: Guest on February-04-2021

Code answers related to "random number in vs code console"

C# Answers by Framework

Browse Popular Code Answers by Language