Select caster level:

1st 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th 17th 18th 19th 20th

Generates a Pathfinder spellbook based on the wizard class level selected.

The intent is that these can be used as loot so the DM can fairly add spellbooks without giving one character 'what they need'. To that end these spellbooks are generated from survey data and based on how common each spell is in that data, meaning the more people that take a spell the more likely that spell is to show up in this list.

Features:
Simulates gaining spells from level 1 and up. Will never generate an imposible spell book.
When new slots are gained, prefers spells of the maximum level, but has a chance to pick lower level spells.
Your submissions to the survey effect this list. Contribute here: https://goo.gl/a2AOhT
Current restrictions:
It's possible to generate a spellbook with no max-level spells
Will only generate the minimum number of spells per level, (6 + 2 / level above first)
Mechanism for weighing spell selection at each level could be improved with more data.
There's no way to select between battle and utilty spells. This would be easy to do but I need more data.


Assuming an int of 17

Cantrips
Prestidigitation
Haunted Fey Aspect
Detect Poison
Mending
Bleed
Detect Magic
Message
Root
Read Magic
Jolt
Scoop
Ray of Frost
Ghost Sound
Drench
Resistance
Touch of Fatigue
Open/Close
Daze
Arcane Mark
Mage Hand
Breeze
Spark
Flare
Acid Splash
Penumbra
Light
Disrupt Undead
Dancing Lights
1st level
Detect Undead
Break
Alter Musical Instrument
Shield
Touch of Gracelessness
Dazzling Blade
Obscure Poison
Stone Fist
2nd level
Symbol of Mirroring
Protection from Law, Communal
Cat's Grace
Compulsive Liar
Hideous Laughter
Hidden Presence
Burning Arc
Compassionate Ally
Amplify Stench
3rd level
Flame Arrow
Excruciating Deformation
4th level
Dream Shield
Medusa's Bane
Triggered Suggestion
Vermin Shape I
Firefall
5th level
Interposing Hand
Summoner Conduit
Treasure Stitching
Astral Projection, Lesser
6th level
Control Water
Dust Ward
7th level