How to get random number [10, 20, 30, 50] in MySQL.
I have tried using ROUND(RAND() * (50 - 10) + 10) but, this will generate numbers such as 11, 12, 24 which i don't want.
I wonder if this code will:
FLOOR((RAND([5,10,15,20,25,30,35,40]))
but how?
I want to set my quantity column to choose random 10,20,30, or 50. not 11, 12 or other possible number using ROUND(RAND() * (50-10) + 10).
Hope it is clear.