title: Infinite random stream
body: <p>I'm having some trouble creating an infinite random stream of numbers from 0 to 9.
  Here's where I'm at now:</p>
  
  <pre><code>(#%require (only mzscheme random))
  (define (input_stream) (cons (random 9) (delay input_stream)))
  </code></pre>
  
  <p>Only problem is, <code>(random 9)</code> appears to be initiated only once. The stream is indeed random, but the values of the stream remain constant.</p>
  
  <p>I get <code>7, 7, 7, 7, 7</code> or <code>3, 3, 3, 3, 3</code></p>
  
  <p>Any ideas on how to initiate the random function each time the endless loop starts over?
  I've searched all over online, but couldn't find any way to tackle this one.</p>