Which of the following statements assigns a random integer between 1 and 10, inclusive, to rn ?
A int rn = (int) (Math.random()) * 10;
B int rn = (int) (Math.random()) * 10 + 1;
C int rn = (int) (Math.random() * 10);
D int rn = (int) (Math.random() * 10) + 1;
E int rn = (int) (Math.random() + 1) * 10;