function Rotator (n,state){
  state = state || 0
  return function () {
    return state < n ? state+=1 : state = 0
  }
}
//simple object for rotating through 0 to n
simple object for rotating through 0 to n
simple object for rotating through 0 to n
function Rotator (n,state){
  state = state || 0
  return function () {
    return state < n ? state+=1 : state = 0
  }
}
function Rotator ( n , state ) { state = state || 0 return function ( ) { return state < n ? state += 1 : state = 0 } }
simple object for rotating through 0 to n
simple object for rotating through 0 to n