أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
if the numbers you want to enter is limited it's easy to do with list through data validation.
But if the numbers randomly generated then you need another solution with combination between rand() or randBetween() and if() functions.
Hope this gives you some insights
I'm agree with Mr. Firas Shahadi
Please can explain more what you want to do ?