Post
Topic
Board Bitcoin Discussion
Merits 9 from 2 users
Re: [Quiz] Answer the Bitcoin question and earn merits! #2
by
Amphenomenon
on 20/03/2024, 13:06:24 UTC
⭐ Merited by The Sceptical Chymist (5) ,BlackHatCoiner (4)
I wrote mine as a code in python, to be Frank my code is not professional i`m still working on that

Code:
import math
Parameter = 1
RandomNumber = 3
EulerNumber = 2.71828

Probability = (Parameter ** RandomNumber ) * (EulerNumber ** (-Parameter)) / math.factorial(3)
RoundedProbability = round(Probability, 4)
Inpercentage = str(RoundedProbability * 100)
print ('The chance of having exactly three blocks mined within the next 10 minutes = ',
       RoundedProbability, 'or', Inpercentage + '%')