title: Generate random sparse matrix filled with only values 0 or 1
body: <p>I'm trying to generate a random csr_matrix using SciPy but I need it to only be filled with values 0 or 1.</p>
  
  <p>So far I'm trying to use:</p>
  
  <p><code>rand(1000, 10, density=0.2, format='csr', random_state=np.random.randint(0, 2))</code></p>
  
  <p>and I get the correct structure and density I want, but the values filling it are floats between 0 and 1.</p>
  
  <p>Is there a way to generate this structure with just floats of 0 or 1?</p>