This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Well if you need to store stuff in a database you are going to need a server side language like JSP or ASP. Cookies are not a good way to store information since a person may not have them enabled, or they might delte them on a daily basis. To have everything be random with no repeating is going to rely on the database and checking to see if that combo has been met. Most of this should be done on a server side. If you do not need everything to be completely random, then you can just use a random number generator to get the information from the array on client side and pass them to the server side. Now that I probably lost you or did not answer your question I will stop and get to work.
The browser used is immaterial. What matters is whether your web server supports server-side JS. And Netscape Server (is that even still around?) is the only one I've ever heard of that does. I'd follow Eric's suggestion of a more commonly used server-side mechanism. Obviously JSP/Servlets are a natural choice for most readers of these forums. hth, bear