Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtifP-00008l-7C for pgsql-general@arkaria.postgresql.org; Fri, 11 Jan 2013 17:45:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TtifO-0001Mu-OE for pgsql-general@arkaria.postgresql.org; Fri, 11 Jan 2013 17:45:18 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtifN-0001Mp-N4 for pgsql-general@postgresql.org; Fri, 11 Jan 2013 17:45:17 +0000 Received: from tempest.mainecoon.com ([69.12.217.123] helo=tempest) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtifM-0007Mz-4d for pgsql-general@postgresql.org; Fri, 11 Jan 2013 17:45:17 +0000 Received: from [10.1.1.2] (fw.boscorama.com [75.101.8.88]) by tempest (Postfix) with ESMTPSA id 2843D1D3CC09; Fri, 11 Jan 2013 09:45:14 -0800 (PST) Message-ID: <50F04FA5.4050809@boscorama.com> Date: Fri, 11 Jan 2013 09:45:09 -0800 From: Bosco Rama User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15 MIME-Version: 1.0 To: PostGIS Users Discussion , pgsql-general List Subject: Re: [postgis-users] Query with LIMIT but as random result set? References: <20130110202824.255780@gmx.com> <50F04C66.50209@archidevsys.co.nz> In-Reply-To: <50F04C66.50209@archidevsys.co.nz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 01/11/13 09:31, Gavin Flower wrote: > -- theta in radians > -- for radius = 100 > > INSERT INTO ranpoint > (id, theta, r) > VALUES > (generate_series(1, 10), pi() * random(), 100 * random()); Shouldn't the value for theta be: 2 * pi() * random() Bosco. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general