this post was submitted on 18 Jun 2023
11 points (100.0% liked)
C Programming Language
1090 readers
1 users here now
Welcome to the C community!
C is quirky, flawed, and an enormous success.
... When I read commentary about suggestions for where C should go, I often think back and give thanks that it wasn't developed under the advice of a worldwide crowd.
... The only way to learn a new programming language is by writing programs in it.
- irc: #c
π https://en.cppreference.com/w/c
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
So are the chances the same?
For each landmark run the number of flips (heads and tails) is recorded. Distance is the number of flips since the last landmark run, where distance is 1 it means that another head or tail was flipped to continue an already landmark run. To reach the goal of 25 flips of the same side - one had to flip 10,135,994 coins.
So yeah. Your chances of winning the Lottery are about the same whether you buy a ticket or not.
I wonder whatβs the best library in C to draw graphs about these stuff. If you use Python for that (such as Google Collab) that would be pretty straightforward.
I would probably have my program print the data in CSV format and then import it into Libra Calc (LibraOffice Spreadsheet) for all kinds of graphing.