Assuming we have an instance of Random called generator, what will the following line of code do?

int x = generator.nextInt(20);
Generate a number between 0 and 19
  • generate a number between 0 and 20
  • generate a number between 1 and 19
  • generate a number between 1 and 20

There are no hints for this question