WIP: test random sampling