The function =rand() will produce the numbers you are receiving. If you want numbers in a specific range you can you use =randbetween(0,25) or maybe =randbetween(1,24) to get the results you are looking for. It won't give you exactly the results you want because it will repeat numbers. I hope this helps!