Changed `random` to pick author randomly first.

This gives equal pseudo-random probability to each author, regardless of
the number of books by them.