pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-sql@postgresql.org
Subject: Re: Random()
Date: Thu, 16 Nov 2006 16:20:38 -0500
Message-ID: <20061116212038.GB16916@phlogiston.dyndns.org> (raw)
In-Reply-To: <55c095e90611161254w271e6781h6ee0d09a5be60db1@mail.gmail.com>
References: <55c095e90611161031h7a1ce42chd9a59a53ba7e7028@mail.gmail.com>
	<20061116191632.GA21285@a-kretschmer.de>
	<55c095e90611161254w271e6781h6ee0d09a5be60db1@mail.gmail.com>

On Thu, Nov 16, 2006 at 06:54:42PM -0200, Ezequias Rodrigues da Rocha wrote:
> My bigint field has 20,000 numbers and I'd like to make real random (used
> like lottery).

If you want _real_ random, you have to use a non-computer source for
your randomness.  The best you get on a computer is pseudo-random. 
Often it's very good pseudo-random -- most of the time, good enough
for most purposes -- but it isn't true randomness of the sort that is
delivered by (for example) particle decay.

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
The plural of anecdote is not data.
		--Roger Brinner



view thread (19+ messages)  latest in thread

Message-ID: <20061116212038.GB16916@phlogiston.dyndns.org>
Permalink:  ../20061116212038.GB16916@phlogiston.dyndns.org/
Also on:    postgresql.org/message-id/20061116212038.GB16916@phlogiston.dyndns.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ajs@crankycanuck.ca
  Subject: Re: Random()
  In-Reply-To: <20061116212038.GB16916@phlogiston.dyndns.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox