1. First, open Excel, create a new table, and select an area as the number generation area.
2. Then, we click Merge Center on the ribbon.
3. Then enter the function: = int (rand () * (100-1+1))+1.
4. If you only want to draw numbers within 50 people and change 100 to 50, the function is: = int (rand () * (50-1+1))+1.
5. Click Enter, and the function will automatically generate a number within 50.
6. Finally, press the F9 key of the keyboard to refresh, that is, every time you press F9, a new number will appear.