Do you have a database setup where you store all the accounts? That's the main part. In simple terms you need to use the MYSQL SELECT command and execute how you want the data to be displayed in your program (in order from row to row, or randomly generated)