Sounds like an interesting experiment, a few modules that come to mind are:
- Time::HiRes for measuring time more accurately.
- DBI modules for the database input.
- Math::TrulyRandom may be of use for random number generation, I have had a couple problems with it though and it's in all probability overkill.
You might want to check out the Lingua modules as well, some of them are very interesting.
Update: Forgot to ask, what exactly do you mean by "screen?" The console? a GUI? web-based maybe? or have you decided yet?