You have to do `sample: 2`, otherwise it doesn't return an array :)