π by random numbers
One can gain approximations to π by random sampling. However, these techniques converge very, very slowly.
Points in a Square
The best known is probably that of picking a point a random within the square formed by -1<x<1, -1<y<1. Is the point within the circle of unit radius? I.e. is x2+y2<1? The proportion of points which are will slowly converge to π/4, as the circle has an area of π and the square an area of four.

10 3.6
100 3.08
1000 3.064
10000 3.1124
100000 3.14696
1000000 3.142416
The convergence is truely dreadful. To add a decimal digit of accuracy requires increasing the number of samples by a factor of a hundred.
Tossing a Coin
Suppose a coin is tossed until the number of heads obtained exceeds the number of tails. At this point the fraction of the number of heads divided by the total number of tosses is noted. Then one starts again, and averages all the fractions obtained. The average will approach π/4, again very slowly.
10 2.754202735102116
100 2.9117594001371483
1000 3.1504853281261975
10000 3.1349423128046308
This method is very, very slow. The code above counts not coin tosses, but sequences ending with more heads than tails. About half those sequences are very short indeed: the first toss is heads. Another eighth are quite short, being tails, heads, heads. But occasionally a sequence will be ridiculously long, as if chance causes the number of tails to get ahead, it can take a long time to correct this. Indeed, sometimes it can get stuck. On one run the first ten sequences all finished with fewer than ten heads. At around run 26 there was a sequence with 3891 heads and 3890 tails. But sequence 31 was phenonemal, with 5,135,130,659 heads and 5,135,130,658 tails. Calculating just 100 sequences took over half an hour on a faster machine than a Pi 5. Bad luck, or less than truely random random number generator? Probability says that a sequence will terminate, but gives no upper bound for the termination time.