Generetors

  • Create a generator function to produce endless random numbers from a given range:

 

  • Create a generator function to produce endless numbers from a given range in a circular flow :