สุ่มจำนวนด้วย random

📋 โจทย์

ตั้ง seed จากจำนวนเต็ม s แล้วพิมพ์ random.randint(1, 6) หนึ่งครั้ง

⚠️ ข้อจำกัด

ใช้ random.seed(s) ก่อนสุ่ม

📝 ตัวอย่าง

ตัวอย่างที่ 1
Input:
1
Output:
2
🔓 ดูเฉลย
import random
s = int(input())
random.seed(s)
print(random.randint(1, 6))
🐍 main.py

กด Run เพื่อรันโค้ด หรือ ตรวจคำตอบ เพื่อตรวจ test cases