random hookup to random sampling