Ppt plus vba to make a lottery program, extracting form numbers and red and black squares, which cannot be repeated randomly. I found one who did ppt on the Internet but chose it randomly again and ag

Ppt plus vba to make a lottery program, extracting form numbers and red and black squares, which cannot be repeated randomly. I found one who did ppt on the Internet but chose it randomly again and again. I haven't read the document, so I'm too lazy to read it. Let's talk about ideas.

Create a data set and store all the table numbers (which can be discontinuous). For example, there are 50 data sets. Randomly select a number between 1~50, and find the table number corresponding to this number in the data set. Delete this table number from the dataset and the dataset will become 49. Next time, I will choose a number between 1 and 49. ...