Hi, Why you’re substracting the 25 from the random number? Because by this way you can get a negative value. Which unable to get the item. Also, If you don’t getting an error, then try:
-
Add console.log() to check the query items.
-
Add console to check the random value.
-
Check you’re getting the random item in console.
-
Assing string value to the text. Use .toString()
If still unresolved, I request you to send the code & console screenshot.