Scratch 구현 가이드: How to Create Weighted Probability Drops (Common / Rare) in Scratch
먼저 최소 동작 버전을 완성해 테스트한 뒤 속도, 소리, 스테이지를 확장해 보세요. Roll 1–100 and assign ranges (1–5 Rare, 6–25 Uncommon, 26–100 Common).
핵심 원리 및 구현 단계: Minimal Working Block Recipe
먼저 최소 동작 버전을 완성해 테스트한 뒤 속도, 소리, 스테이지를 확장해 보세요.
Roll 1–100 and assign ranges (1–5 Rare, 6–25 Uncommon, 26–100 Common).
Test this minimal version first, then tune numbers like speed, gravity, or timing to match your game feel.
- set [roll] to (pick random 1 to 100)
- if <roll (6) then Rare else if <roll (26) then Uncommon else Common
직접 해보기: Teaches probability through game design.
Random & Probability 1,000-Trial Lab (pick random 1 to 6)
Run Scratch’s "pick random (1) to (6)" 1, 10, 100, or 1,000 times to watch each outcome converge toward the theoretical 16.7% probability.
테스트 체크리스트 및 응용: Debugging Checklist & Next Steps
초록 깃발을 누르기 전에 결과를 예측하고 변수와 좌표 변화를 직접 확인하세요.
If it behaves unexpectedly, verify initial variable resets on the green flag and check that continuous checks sit inside a forever loop.
테스트 체크리스트 및 응용
초록 깃발을 누르기 전에 결과를 예측하고 변수와 좌표 변화를 직접 확인하세요.
이 안내서는 학습을 돕기 위한 자료입니다. Scratch 화면 구성과 이용 약관은 업데이트될 수 있으므로 공식 사이트 정보도 함께 확인해 주세요.