How to solve the random question problem, the question did not come out for all from the database but instead the number of question come out everytime i open, it changes randomly

How to solve the random question problem, the question did not come out for all from the database but instead the number of question come out everytime i open, it changes randomly

this is my code please help