furlz
furlz13mo ago

Select by Random

Is it possible to select by random?
2 Replies
Michal Srb
Michal Srb13mo ago
Hey @furlz, it depends on your use case. In some scenarios you could get by with the client choosing a random value. If you need the server to return a random value, you can do that with Math.random() in queries, but it might give the same value for a while (otherwise a query using Math.random() could never be cached).
furlz
furlzOP13mo ago
makes sense

Did you find this page helpful?