The upcomming release of Campaign Suite Extended will include Spellbook Generators for 3.0 and 3.5 - this will use basic concepts like "utility spells" and "combat spells" and allow you to set a 'weight' for each - depending on the characters personality or whatever factors you want to set (or just click 'random' if you want).