Web Log di Adrian Florea

"You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away." Antoine de Saint-Exupery
posts - 440, comments - 2715, trackbacks - 3944

My Links

Archives

Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites

Blogs

Furls

Links

vinCitori

Quiz Sharp 6

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

Print | posted on domenica 23 maggio 2004 16:59 | Filed Under [ Quiz Sharp ]

Powered by:
Powered By Subtext Powered By ASP.NET