random subset from elements from 0 to n-1