W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2010

Re: Proposed RAND() defn

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Thu, 02 Dec 2010 12:12:29 +0000
Message-ID: <4CF78D2D.7020201@epimorphics.com>
To: Steve Harris <steve.harris@garlik.com>
CC: SPARQL Working Group <public-rdf-dawg@w3.org>
> Maybe I don't understand RAND for SQL well enough but I thought that
> RAND() returns different numbers in
>
> FILTER(RAND()> 0.5&& RAND()< 0.6)
>
> (if you want the same number assign it in some way)
>
> As RAND() returns different numbers, so

MySQL:

select rand() as A , rand() as B from T ;

+-------------------+-------------------+
| A                 | B                 |
+-------------------+-------------------+
| 0.231994651474054 | 0.353741641485823 |
+-------------------+-------------------+
1 row in set (0.00 sec)

	Andy
Received on Thursday, 2 December 2010 12:13:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:44 GMT