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