
In SQL, we have the RAND()
function, is there an equivalent in Appwrite?
In my app, the user answers questions, which all have an Elo rating. I'm actually unfamiliar with how to choose which question next (matchmaking algorithms), but one way would be to choose a random value, I guess. If any of you guys have a better suggestion on how to tackle my specific problem, please let me know. Ideally, items would not repeat too much, and the range of question Elo should be similar to the user's.

Currently Nope. Either you would have to know the total ammount of docuements in your collection then use a random function to genarate some random offset then query using those random offset. Or you can fetch much docs See how much docs are there Then pick a random one. Btw There is a feature request of this issue https://github.com/appwrite/appwrite/issues/5205 You could show intrest in this 🤷♂️
Recommended threads
- grant permisions only to users in collec...
I'm building a web app and instead of using Appwrite Auth, I made my own custom auth system that stores user data in documents. I have a "Profile" page where lo...
- Document Data is null.
I'm using flutter and I've just got everything set up, the document meta data is null but the actual query is fine. (see screenshot) The permission I have ar...
- Do I need Redis if using appwrite
Saw appwrite has built-in redis, but does this work for listdocuments, getdocument and other query etc? what does the appwrite redis covers under the hood?
