Use rand.Int31() as int has changed in go 1.1.

Tests failed around negative Item.Priority for go 1.1, as int size
has changed.