I’d like to generate size N set of random numbers in Sqlite.
Right now the best I’ve got is to union a set of calls to random() like this
create view random_view as
select random()
union select random()
union select random()
union select random()
union select random()
;
Maybe someone has a more clever solution that could generate N numbers?
Didn’t try, but maybe this? Given any table of at least N rows,
replacing
?with N.