<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def white_noise(dur=None, low=-1., high=1.):
 """ White noise stream generator. Parameters dur : Duration, in number of samples; endless if not given (or None). low, high : Lower and higher limits. Defaults to the [-1; 1] range. Returns ------- Stream yielding random numbers between -1 and 1. """

  if dur is None or (isinf(dur) and dur > 0):
    while True:
      yield random.uniform(low, high)
  for x in xrange(rint(dur)):
    yield random.uniform(low, high)