Skip to content

Instantly share code, notes, and snippets.

View SandinhoS's full-sized avatar

SandinhoS

  • Joined Sep 4, 2025
View GitHub Profile
@SandinhoS
SandinhoS / # choices ( )
Created October 2, 2025 12:17
10224096 Sandinho Situmorang - Intro to Random Numbers
import random as rnd
print("choice() - Koin:")
koin = ['B', 'K'] # Burung, Kepala
for i in range(20):
print(rnd.choice(koin), end=',')
print()
print("\nchoice() - Dadu:")
dadu = [1, 2, 3, 4, 5, 6]