Skip to content
Snippets Groups Projects
Commit b7a8cced authored by AxelCarayon's avatar AxelCarayon
Browse files

fix min/max range

parent a2339172
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ def experiment(tries,min=0,max=10) -> None:
numbers.append(random.randint(min,max))
print("Generated :" + str(numbers))
plt.hist(numbers,range=(0,10),bins=11,color='blue',edgecolor='black')
plt.hist(numbers,range=(min,max),bins=max+1,color='blue',edgecolor='black')
print(f"average : {np.mean(numbers)}")
plt.show()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment