I don't know if I'm missing something, but couldn't you just grab random words from a word list?
On Sun, 22 Feb 2004 18:55:48 +0100 (CET) [EMAIL PROTECTED] wrote: > Dear All, > First, I hope this is the right list (and not the aspell-user) for my > problem, if not, please let me know. > I started to develop a network playable version of my favourite word > game "Anagramarama" (see http://www.coralquest.com/anagramarama/), and I > decided to replace its internal dictionary with aspell - it works quite > well, but I have a little problem: > I generate words (with a given length) to guess by generating a random > string, and pick up an appropriate word from aspell's suggestions list. It > seems to me, that aspell "prefers" some words when making suggestions. I > have generated 30000 seven letters long words, it came up with 8806 > different ones, but some of them occured much more frequently than the > others: "skyjack" was the winner, it came up 153 times ( ~ every 200nd > turn in average) Actually, the top 3 was the same when running another > 30000 two times. > Anyway, it's not a big problem, and I can also imagine, that it lies > with the unfamous "rand()" function. All I want is to ask you, if any of > the list memebers have an idea how to generate words randomly in a > more "fair" way -if yes, please let me know. > If someone is inetersted, I can send the list of the generated words > sorted by their frequency, and the code which generated it. > > Thanky you and Good bye: > Miklos Merenyi > > > > > > _______________________________________________ > Aspell-devel mailing list > [EMAIL PROTECTED] > http://mail.gnu.org/mailman/listinfo/aspell-devel _______________________________________________ Aspell-devel mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/aspell-devel