Random sample distance