sample now returns pos (not just x)

Slight mistake in the original commit (due to copy-pasting under sleepiness).