Lottery, general question

Hi how can I create code for a lottery,

How to check a winning number for each user?

Can I for example put each number of a user in an array and then compared each number with the winning number?

In this case I don’t need to use a database and store the numbers for each user.

You could do this by learning JavaScript https://www.freecodecamp.org/learn/javascript-v9

or Python https://www.freecodecamp.org/learn/python-v9/