Re: [sqlite] order by "a huge number" does not work, but "random" well why ?

2013-01-15 Thread Simon Slavin
On 15 Jan 2013, at 1:58pm, Ryan Johnson wrote: > On 14/01/2013 9:48 AM, François-xavier Jacobs wrote: >> i would like to "seed random" a request, so i could do use some pagination >> system with a order by random(), is this possible sqlite ? when a tried to >> use "order by 1234567892" it always

Re: [sqlite] order by "a huge number" does not work, but "random" well why ?

2013-01-15 Thread François-xavier Jacobs
Indeed shuffle was my goal i solve it by doing order by "((rowid * "+seed.longValue()+" ) % "+BIG_PRIME_NUMBER+")"; as long ass the seed doe not change result is the same, so i can shuffle with LIMT Regards 2013/1/15 Ryan Johnson > On 14/01/2013 9:48 AM, François-xavier Jacobs wrote: > >> Hi

Re: [sqlite] order by "a huge number" does not work, but "random" well why ?

2013-01-15 Thread Clemens Ladisch
François-xavier Jacobs wrote: > when a tried to use "order by 1234567892" it always return the same order Because this is the *same* value for all records. > i would like to "seed random" a request, so i could do use some pagination > system with a order by random(), is this possible sqlite ? Ca

Re: [sqlite] order by "a huge number" does not work, but "random" well why ?

2013-01-15 Thread Igor Tandetnik
On 1/14/2013 9:48 AM, François-xavier Jacobs wrote: i would like to "seed random" a request, so i could do use some pagination system with a order by random(), is this possible sqlite ? when a tried to use "order by 1234567892" it always return the same order random() returns a different value

Re: [sqlite] order by "a huge number" does not work, but "random" well why ?

2013-01-15 Thread Marc L. Allen
x27;t have a quick SQLite engine available to test) -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of François-xavier Jacobs Sent: Monday, January 14, 2013 9:48 AM To: sqlite-users@sqlite.org Subject: [sqlite] order by "a h

Re: [sqlite] order by "a huge number" does not work, but "random" well why ?

2013-01-15 Thread Ryan Johnson
On 14/01/2013 9:48 AM, François-xavier Jacobs wrote: Hi everyone i would like to "seed random" a request, so i could do use some pagination system with a order by random(), is this possible sqlite ? when a tried to use "order by 1234567892" it always return the same order That's because you told

[sqlite] order by "a huge number" does not work, but "random" well why ?

2013-01-15 Thread François-xavier Jacobs
Hi everyone i would like to "seed random" a request, so i could do use some pagination system with a order by random(), is this possible sqlite ? when a tried to use "order by 1234567892" it always return the same order ___ sqlite-users mailing list sqli