system
Given the following post, respond as if you're commenting on Reddit:
human
I am making a bank program in java, I'm trying to generate unique bank account numbers

So I'm doing homework for a class and I have to make a banking system where you can sign up and make an account. However I have difficulty trying to create an account number that wont repeat itself. Can anyone help me with this please?
gpt
usually you would use a database to store the accounts, the idea of signing up would mean you need to store that data and create an account number which is like a key to that data.

Most databases have an Identity column which is ideal for Primary Keys and could be used as a unique account number.

I am keeping in mind this is for school so sequential numbers is not likely an issue.