code: func (p Primitive) GenerateExample(r *RandomGenerator, seen []string) interface{} {
  	switch p {
  	case Boolean:
  		return r.Bool()
  	case Integer:
  		return r.Int()
  	case Number:
  		return r.Float64()
  	case String:
  		return r.String()
  	case DateTime:
  		return r.DateTime()
  	case UUID:
  		return r.UUID().String() // Generate string to can be JSON marshaled
  	case Any:
  		// to not make it too complicated, pick one of the primitive types
  		return anyPrimitive[r.Int()%len(anyPrimitive)].GenerateExample(r, seen)
  	case File:
  		return r.File()
  	default:
  		panic("unknown primitive type") // bug
  	}
  }
docs: // GenerateExample returns an instance of the given data type.