add interface for random sampling