On 8 Jul 2018, at 9:40am, Simon Slavin <[email protected]> wrote:
> Use the conventional
>
> CAST(RANDOM() * 7) AS INTEGER
>
> or whatever spread you want.
Apologies. In SQLite this should be
(RANDOM() % 7)
instead. The percent sign is a 'modulo' operator.
Simon.
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

