# Writing Simulations Using Go

DevFeed: [Writing Simulations Using Go](<https://devfeed.tech/articles/writing-simulations-using-go-22174.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2021/01/writing-simulations-using-go.html>)

Published: 2021-01-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Simulation](<https://devfeed.tech/topics/simulation.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Randomizer](<https://devfeed.tech/topics/randomizer.md>), [Statistics](<https://devfeed.tech/topics/statistics.md>)

Tags: [ardan-labs](<https://devfeed.tech/tags/ardan-labs.md>), [blog](<https://devfeed.tech/tags/blog.md>), [go](<https://devfeed.tech/tags/go.md>), [go-programming](<https://devfeed.tech/tags/go-programming.md>), [golang](<https://devfeed.tech/tags/golang.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [programming](<https://devfeed.tech/tags/programming.md>), [random](<https://devfeed.tech/tags/random.md>), [simulation](<https://devfeed.tech/tags/simulation.md>), [statistics](<https://devfeed.tech/tags/statistics.md>)

## AI overview

A practical tutorial on writing simulations in Go using a random number generator. It demonstrates a Catan dice-roll simulation that estimates how often each sum occurs and explains why seeding affects repeated results.

## Source excerpt

Introduction If you can write a for-loop, you can do statistics. - Jake Vanderplas A lot of developers shy away from problems which involve statistics or probability. Which is shameful since in today's data-rich environment, you can gain a lot of insights from data. In this blog post, I'll show you how to write a simulation tool which requires no knowledge in statistics or probability. Simulations are easy to write and can be a very effective tool in research. You only need some basic programming skills and a random number generator.