namespace ConsumingValuesFromTheStream { function * generateRandomNumbers ( ) { while ( true ) { yield Math . random ( ) ; } } let iter = generateRandomNumbers ( ) ; console . log ( iter . next ( ) . value ) ; console . log ( iter . next ( ) . value ) ; console . log ( iter . next ( ) . value ) ; }