title: How can I stub rand in minitest?
body: <p>I've tried <code>Random.stub :rand, 1 do ... end</code> and <code>Kernel.stub :rand, 1 do ... end</code> and <code>Class.stub :rand, 1 do ... end</code> (because when I run <code>self.class</code> where I run <code>rand(2)</code> I get <code>Class</code>). I've also tried replacing <code>rand(2)</code> with <code>Random.rand(2)</code> but it doesn't help.</p>
  
  <p>So how do I stub out rand?</p>