<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _sample(probability_vec):
 """Return random binary string, with given probabilities."""

    return map(int,
               numpy.random.random(probability_vec.size) <= probability_vec)