From: Matthew Moss Date: 2008-02-17T12:24:17+09:00 Subject: Re: The Smallest Circle (#157) > May I propose a bit refined random method? > >      class Point < Struct.new(:x, :y) >          def self.random >              Point.new(0.5 - rand, 0.5 - rand) >          end > > This should give us negative coordinates as well. :-) Sure, but your algorithm should work with any set of random points, whether they fit in the unit square from 0 to 1, -0.5 to 0.5, or coordinates outside the unit square.