This fixes #87
Fixes #87 ( Removed debug code )
Merge pull request #89 from acaloiaro/master

Fixes #87: Harmonizes sample() behavior with that of GNU R