RandomSample fix

Hi,
Here is the patch proposed by Marc Gronle for the issue http://dev.pointclouds.org/issues/964 regarding RandomSample.

Regards,
Romain Brégier