Fix Post.random to calculate the correct offset