hi there and thanks for reading (and be sure to read my signature)
i want to program a random-name-generator. the main program will have an option to print out one, five or then random names out of my database on the screen. the program will run in the dos-console in windows. i use djgpp to compile and dev-c++ to write my sourcecode. i will use plain c to program the generator.
in the beginning the database will include 20 or 30 names, just for testing out the program functions (random 1, 5, 10).
my two problems are:
1) i don't know which is the best way to write the names in the database? i will write them myself, and it must be included in the program so there can be no harm from 'outside'. i need a way to write the names in my database so the program can read out the names 'best'. can you help me with this?
2) i am not sure how to program the random 1, 5, and 10 functions. any ideas?
some 'theoretical' hints will help me thank you in advance (be sure to read my signature)