Ovaj kod:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
for (int i = 0; i < 6; i++)
{
Random randomizer = new Random();
int random = randomizer.Next(4);
Console.WriteLine(random);
}
Console.ReadKey(true);
}
}
}
Ispiše na ekran šest istih brojeva. Dakle ovaj randomizer izbaci šest svaki put. Zašto i kako to sredim?