using System;
class Foo
{
static void Main()
{
Random r1 = new Random();
Random r2 = new Random();
Console.WriteLine(r1.Next() == r2.Next());
Console.WriteLine(r1.Next(r1.Next()) == r2.Next(r2.Next()));
Console.WriteLine(r1.Next(r2.Next()) == r2.Next(r1.Next()));
Console.ReadLine();
}
}
Vi aspettate:
- A.
False
False
False
- B.
True
False
False
- C.
True
True
False
- D.
True
True
True