Assume we were trying to test the following method:

public boolean foo()
{
    Random generator = Random.generator();
    if (generator.nextInt(100) < 10)
    {
        return true;
    }
    return false;
}

We want to test to make sure the method above returns true when it should. How should we call setNextInts()?

Random.setNextInts(2);
  • Random.setNextInts(10);
  • Random.setNextInts(40);
  • None of these would work

There are no hints for this question