Stilgar
New member
- Joined
- Feb 15, 2023
- Messages
- 1
- Programming Experience
- Beginner
My script doesn't work and I don't why. Here are outputs:
And here is my scripts:
And here is my scripts:
C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Authentication.ExtendedProtection;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp6
{
internal class Program
{
static void Main(string[] args)
{
Kostka throw = new Kostka();
throw.Hod();
Console.ReadKey();
}
}
}
C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp6
{
internal class Kostka
{
public void Hod()
{
Random rnd = new Random();
int Hodnota = rnd.Next(8,20);
Console.WriteLine(Hodnota);
}
}
}
Last edited by a moderator: