Get random elements based on probabilty