Changes JP's task to a generator

This has the benefit of letting us initialize the secret to random numbers.