Random Sentence Generator?
I am interested in linux kernel programming it is nice but so hard until now.
I wanna implement a Linux kernel module that gives out fortune cookies.
I wanna do something like proc/mycookies to take some cookies from user
and for each run will print a random sentence.
I mean i will write some sentences to a file(fortune file) and i will load my fortune file first
$ cat cookielist.txt > /proc/mycookie...
When user prompt it;it will print out a sentence randomly.
$ cat /proc/mycookie
Lucky you: Your fortune is meaningless
is there any idea? Where should i start?