Skip to content

Instantly share code, notes, and snippets.

@aysnrdurak
Created August 8, 2022 08:55
Show Gist options
  • Save aysnrdurak/927ee49a9ab9530b122111153f70d581 to your computer and use it in GitHub Desktop.
Save aysnrdurak/927ee49a9ab9530b122111153f70d581 to your computer and use it in GitHub Desktop.
import numpy as np
import matplotlib.pyplot as plt
data = np.random.randint(1, 7, 60000)
# Yukarıdaki kod satırındaki değişkenler şu şekildedir:
# (başlangıç değeri, bitişten sonraki değer, örnek sayısı)
print("Sample Space: ", np.unique(a))
plt.hist(a, bins=6)
plt.ylabel("Sonuçların Elde Edilme Sayısı")
plt.xlabel("Elde Edilebilecek Sonuçlar")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment