{"version":"1.0","type":"rich","title":"Gist 425738","description":"This example demonstrates a Monte Carlo simulation for approximating the value of π by generating random points within a unit square and counting how many fall inside the unit circle. The code uses Go’s standard `rand` package for pseudo-random number generation and `flag` for command-line parameters, with concurrent goroutines and channels to parallelize the sampling across multiple processes. It reports the calculated π value and the execution time in milliseconds, though it produces no visual chart or plot.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-425738?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}