update to make RandomSample finally work@

see random.cpp for more details - this was painful!