본문 바로가기

Math 클래스

도입됨
교재 자료 수업 보기
English

Trace a random range at both ends

  • Tickets need integer labels from 4 through 9 inclusive. Use (int)(Math.random() * 6) + 4.
  • Scaling gives values from 0 up to but not including 6; truncating gives 0 through 5; shifting gives 4 through 9.
Trace a random range at both ends

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP