sample now returns pos (not just x)

Slight mistake in the original commit (due to copy-pasting under sleepiness).
Merge pull request #13 from esdalmaijer/patch-3

sample now returns pos (not just x)