单项选择题

下列语句序列执行后,num的值是( )。
Random rd =new Random();
int num=Math.abs(rd.nextInt())%4+1

A.1~4之间的随机值
B.5
C.0
D.-1