Logo
search
menuicon
Quiz created with a Pro-exclusive map
thubnail
Shadow Cage
Freestyle
Other
Others
난수
코딩쌤
5
Added Question (20/ 20)
Allow incorrect answer
Show answer
private quiz

Question 1

Short Answer

1~4 사이의 난수값:

  • rand()%4+1

Question 2

Short Answer

10~20 사이의 난수값:

  • rand()%11+10

Question 3

Short Answer

0~9 사이의 난수값:

  • rand()%10

Question 4

Short Answer

-5~5 사이의 난수값:

  • rand()%11−5

Question 5

Short Answer

50~60 사이의 난수값:

  • rand()%11+50

Question 6

Short Answer

100~200 사이의 난수값:

  • rand()%101+100

Question 7

Short Answer

2~8 사이의 난수값:

  • rand()%7+2

Question 8

Short Answer

-10~10 사이의 난수값:

  • rand()%21−10

Question 9

Short Answer

30~35 사이의 난수값:

  • rand()%6+30

Question 10

Short Answer

0~1 사이의 난수값:

  • rand()%2

Question 11

Short Answer

5~15 사이의 난수값:

  • rand()%11+5

Question 12

Short Answer

20~24 사이의 난수값:

  • rand()%5+20

Question 13

Short Answer

-20~-10 사이의 난수값:

  • rand()%11−20

Question 14

Short Answer

200~250 사이의 난수값:

  • rand()%51+200

Question 15

Short Answer

15~17 사이의 난수값:

  • rand()%3+15

Question 16

Short Answer

1~100 사이의 난수값:

  • rand()%100+1

Question 17

Short Answer

7~13 사이의 난수값:

  • rand()%7+7

Question 18

Short Answer

90~99 사이의 난수값:

  • rand()%10+90

Question 19

Short Answer

-3~3 사이의 난수값:

  • rand()%7−3

Question 20

Short Answer

0~49 사이의 난수값:

  • rand()%50

Next quiz
Share to Google Classroom