ℹ️ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | FAIL | download_stamp > now() - 6 MONTH | 7.6 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://stackoverflow.com/questions/10067325/random-walk-brownian-motion |
| Last Crawled | 2025-08-21 16:46:24 (7 months ago) |
| First Indexed | not set |
| HTTP Status Code | 200 |
| Meta Title | c++ - Random walk- Brownian Motion - Stack Overflow |
| Meta Description | null |
| Meta Canonical | null |
| Boilerpipe Text | Your question is horribly ill-posed. This almost certainly isn't your fault since your instructor should have pointed out to you that a proper implementation of Brownian motion requires lots and lots of pretty sophisticated specification and analysis of the problem domain even before you get to coding. The precise definition of Brownian motion is probably going to be opaque to you unless you've taken the relevant courses in measure theory. However, there are plenty of resources on the net that give adequate descriptions of Ito processes (of which Brownian motion is an example). If you're interested in coding such a process up, here's a decent tip. At some stage you're going to need to generate random numbers. Almost certainly, you're going to be interested in generating draws from a normal distribution. Thankfully, there are some great ways of doing this available to a C++ programmer. My favourite is to use the Boost.Random library (or the relevant libraries in C++11). The smartest strategy is to use a function object to generate the random variates, probably by using a variate_generator: #include <iostream>
#include <vector>
using namespace std;
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/normal_distribution.hpp>
#include <boost/random/variate_generator.hpp>
int main()
{
// Some typedefs to help keep the code clean
// Always a good idea when using Boost!
typedef boost::mt19937 T_base_prng;
typedef boost::normal_distribution<> T_norm_varg;
typedef boost::variate_generator<T_base_prng&, T_norm_dist> T_norm_varg;
unsigned int base_seed = 42; // Seed for the base pseudo-random number generator
double mean = 0.0; // Mean of the normal distribution
double stdev = 1.0; // Standard deviation of the normal distribution
T_base_prng base_prng(base_seed); // Base PRNG
T_norm_dist norm_dist(mean, stdev); // Normal distribution
T_norm_varg norm_varg(base_prng, norm_dist); // Variate generator
// Generate 1000 draws from a standard normal distribution
vector<double> drawVec(1000);
for (vector<double>::iterator iter = drawVec.begin();
iter != drawVec.end(); ++iter)
{
*iter = norm_varg();
}
// More stuff...
return 0;
}
Once you get a handle on what a Brownian motion is, it should then be trivial to construct some examples using the functionality in Boost.Random. |
| Markdown | [Skip to main content](https://stackoverflow.com/questions/10067325/random-walk-brownian-motion#content)
[Stack Overflow](https://stackoverflow.com/)
1. [About](https://stackoverflow.co/)
2. Products
3. [For Teams](https://stackoverflow.co/teams/)
1. [Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers](https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams)
2. [Advertising Reach devs & technologists worldwide about your product, service or employer brand](https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising)
3. [Knowledge Solutions Data licensing offering for businesses to build and improve AI tools and models](https://stackoverflow.co/api-solutions/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api)
4. [Labs The future of collective knowledge sharing](https://stackoverflow.co/labs/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=labs)
5. [About the company](https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) [Visit the blog](https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog)
1. ### [current community](https://stackoverflow.com/)
- [Stack Overflow](https://stackoverflow.com/)
[help](https://stackoverflow.com/help) [chat](https://chat.stackoverflow.com/?tab=explore)
- [Meta Stack Overflow](https://meta.stackoverflow.com/)
### your communities
[Sign up](https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F10067325%2Frandom-walk-brownian-motion) or [log in](https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F10067325%2Frandom-walk-brownian-motion) to customize your list.
### [more stack exchange communities](https://stackexchange.com/sites)
[company blog](https://stackoverflow.blog/)
2. [Log in](https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F10067325%2Frandom-walk-brownian-motion)
3. [Sign up](https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F10067325%2Frandom-walk-brownian-motion)
1. 1. [Home](https://stackoverflow.com/)
2. [Questions](https://stackoverflow.com/questions)
3. [AI Assist Labs](https://stackoverflow.ai/)
4. [Tags](https://stackoverflow.com/tags)
5. [Challenges](https://stackoverflow.com/beta/challenges)
6. [Chat](https://chat.stackoverflow.com/rooms/259507/stack-overflow-lobby)
7. [Articles](https://stackoverflow.blog/contributed?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=so-blog&utm_content=experiment-articles)
8. [Users](https://stackoverflow.com/users)
9. [Companies](https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav)
10. [Collectives]()
11. Communities for your favorite technologies. [Explore all Collectives](https://stackoverflow.com/collectives-all)
2. Teams

Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
[Try Teams for free](https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) [Explore Teams](https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams)
3. [Teams]()
4. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. [Explore Teams](https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact)
##### Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
[Learn more about Collectives](https://stackoverflow.com/collectives)
**Teams**
Q\&A for work
Connect and share knowledge within a single location that is structured and easy to search.
[Learn more about Teams](https://stackoverflow.co/teams/)
# [Random walk- Brownian Motion](https://stackoverflow.com/questions/10067325/random-walk-brownian-motion)
[Ask Question](https://stackoverflow.com/questions/ask)
Asked
13 years, 4 months ago
Modified [13 years, 4 months ago](https://stackoverflow.com/questions/10067325/random-walk-brownian-motion?lastactivity "2012-04-09 05:11:17Z")
Viewed 9k times
2
I've been assigned the project of creating a simple console app. that models brownian motion in a 2D plane. I wasn't given much information on how to do so (and I'm hoping that it's a pretty popular assignment so that I could get some insight) just that it relies on random number generation. I researched brownian motion for a little bit and saw some formulas that looked complicated, but by the description is just seems to have to move randomly within a certain number interval. Can anyone clarify? Am I to create a program that continually creates a random number in an interval and then modify the particles "x" and "y" coordinate or is there more to it?
Thanks for any help.
- [c++](https://stackoverflow.com/questions/tagged/c%2B%2B "show questions tagged 'c++'")
- [random](https://stackoverflow.com/questions/tagged/random "show questions tagged 'random'")
[Share](https://stackoverflow.com/q/10067325 "Short permalink to this question")
[Improve this question](https://stackoverflow.com/posts/10067325/edit)
Follow
[edited Apr 8, 2012 at 23:14](https://stackoverflow.com/posts/10067325/revisions "show all edits to this post")
[](https://stackoverflow.com/users/198244/jamessan)
[jamessan](https://stackoverflow.com/users/198244/jamessan)
42\.8k88 gold badges8888 silver badges8585 bronze badges
asked Apr 8, 2012 at 23:12
[](https://stackoverflow.com/users/699969/sam)
[Sam](https://stackoverflow.com/users/699969/sam)Sam
2,34799 gold badges3939 silver badges5454 bronze badges
3
- What, specifically, have you tried or are you having a problem with?
– [Chad](https://stackoverflow.com/users/185915/chad "19,152 reputation")
Commented Apr 8, 2012 at 23:16
- 2
This sounds like something to ask your TA.
– [Michael Petrotta](https://stackoverflow.com/users/23897/michael-petrotta "61,068 reputation")
Commented Apr 8, 2012 at 23:16
- Is it full-blown [brownian motion](http://en.wikipedia.org/wiki/Brownian_motion) or the far-simpler [random walk](http://en.wikipedia.org/wiki/Random_walk)? Will you have to migrate the program from random walk to Brownian motion in the next iteration?
– [sarnold](https://stackoverflow.com/users/377270/sarnold "104,382 reputation")
Commented Apr 8, 2012 at 23:18
[Add a comment](https://stackoverflow.com/questions/10067325/random-walk-brownian-motion "Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.") \|
## 4 Answers 4
Sorted by:
[Reset to default](https://stackoverflow.com/questions/10067325/random-walk-brownian-motion?answertab=scoredesc#tab-top)
3
Brownian motion is the result of random air molecules hitting a small particle. Since the sum of a bunch of random forces is unlikely to be exactly 0, and the mass of the particle is so small, it appears to jiggle around, hence Brownian motion. So you get a motion that appears random, but is not uniformly so.
The dumb way to model it would be to get a uniform distribution for the direction and Gaussian distribution for the momentum of hundreds of air molecules, apply collisions to a particle, and get the sum. Do this many times and you'll get Brownian-type motion. (The individual air molecules have an average momentum dependent on the temperature, and the number of air molecules is dependent on the pressure.)
Note that the resulting motion is not Gaussian, but rather the sum of many samples from the Gaussian distribution. Not sure what it's called.
[Share](https://stackoverflow.com/a/10067356 "Short permalink to this answer")
[Improve this answer](https://stackoverflow.com/posts/10067356/edit)
Follow
[edited Apr 8, 2012 at 23:28](https://stackoverflow.com/posts/10067356/revisions "show all edits to this post")
answered Apr 8, 2012 at 23:19
user684934user684934
1
- Shouldn't the sum of many samples from the Gaussian (normal) distribution be Gaussian itself? By the central limit theorem, the sampling distribution of the sample mean of *any* distribution approaches the normal distribution as the number of samples grows without bound.
– [wchargin](https://stackoverflow.com/users/732016/wchargin "16,097 reputation")
Commented Oct 2, 2014 at 3:24
[Add a comment](https://stackoverflow.com/questions/10067325/random-walk-brownian-motion "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \|
1
Keep in mind that the random motion is not "uniform", but rather if you plot the frequency of movements vs movement distance you'll see that most are short, some are longer, and a few are very long, creating something resembling an exponential decline.
I can't remember what statistical curve the motion observes, but you can probably figure that out, and then you need to craft a random number generator that generates values to fit that curve.
What I would do is calculate distance using this RNG, then use a uniform RNG to calculate angle, from zero to 2\*pi, and make the motion polar. You could calculate a random X and a random Y separately, but I'm not sure you'd get the same distribution.
[Share](https://stackoverflow.com/a/10067364 "Short permalink to this answer")
[Improve this answer](https://stackoverflow.com/posts/10067364/edit)
Follow
answered Apr 8, 2012 at 23:19
[](https://stackoverflow.com/users/581994/hot-licks)
[Hot Licks](https://stackoverflow.com/users/581994/hot-licks)Hot Licks
47\.8k1919 gold badges9696 silver badges155155 bronze badges
2
- Yep, bdares had the distribution -- Gaussian. (Haven't thought about this stuff since 1972.) There are RNGs that will compute Gaussian random numbers directly (or at least there were in 1972).
– [Hot Licks](https://stackoverflow.com/users/581994/hot-licks "47,809 reputation")
Commented Apr 8, 2012 at 23:21
- 1
C++ has a gaussian distribution for use with its random number library. It's called `std::normal_distribution`.
– [bames53](https://stackoverflow.com/users/365496/bames53 "88,566 reputation")
Commented Apr 8, 2012 at 23:55
[Add a comment](https://stackoverflow.com/questions/10067325/random-walk-brownian-motion "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \|
1
Your question is horribly ill-posed. This almost certainly isn't your fault since your instructor should have pointed out to you that a proper implementation of Brownian motion requires lots and lots of pretty sophisticated specification and analysis of the problem domain even before you get to coding.
The precise definition of Brownian motion is probably going to be opaque to you unless you've taken the relevant courses in measure theory. However, there are plenty of resources on the net that give adequate descriptions of Ito processes (of which Brownian motion is an example).
If you're interested in coding such a process up, here's a decent tip. At some stage you're going to need to generate random numbers. Almost certainly, you're going to be interested in generating draws from a normal distribution. Thankfully, there are some great ways of doing this available to a C++ programmer. My favourite is to use the Boost.Random library (or the relevant libraries in C++11). The smartest strategy is to use a function object to generate the random variates, probably by using a variate\_generator:
```
#include <iostream>
#include <vector>
using namespace std;
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/normal_distribution.hpp>
#include <boost/random/variate_generator.hpp>
int main()
{
// Some typedefs to help keep the code clean
// Always a good idea when using Boost!
typedef boost::mt19937 T_base_prng;
typedef boost::normal_distribution<> T_norm_varg;
typedef boost::variate_generator<T_base_prng&, T_norm_dist> T_norm_varg;
unsigned int base_seed = 42; // Seed for the base pseudo-random number generator
double mean = 0.0; // Mean of the normal distribution
double stdev = 1.0; // Standard deviation of the normal distribution
T_base_prng base_prng(base_seed); // Base PRNG
T_norm_dist norm_dist(mean, stdev); // Normal distribution
T_norm_varg norm_varg(base_prng, norm_dist); // Variate generator
// Generate 1000 draws from a standard normal distribution
vector<double> drawVec(1000);
for (vector<double>::iterator iter = drawVec.begin();
iter != drawVec.end(); ++iter)
{
*iter = norm_varg();
}
// More stuff...
return 0;
}
```
Once you get a handle on what a Brownian motion is, it should then be trivial to construct some examples using the functionality in Boost.Random.
[Share](https://stackoverflow.com/a/10069154 "Short permalink to this answer")
[Improve this answer](https://stackoverflow.com/posts/10069154/edit)
Follow
answered Apr 9, 2012 at 5:11
[](https://stackoverflow.com/users/834712/pmcs)
[pmcs](https://stackoverflow.com/users/834712/pmcs)pmcs
1,1231111 silver badges1616 bronze badges
1
- Probably better for the example to use the standard library rather than boost.
– [bames53](https://stackoverflow.com/users/365496/bames53 "88,566 reputation")
Commented Apr 9, 2012 at 6:25
[Add a comment](https://stackoverflow.com/questions/10067325/random-walk-brownian-motion "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \|
0
Yes, you only need to add the random number to the `x` and `y` coordinates at each time step as follow:
```
int x=0, y=0;
for (int t=0; t<N; t++) {
x += distribution(gen);
y += distribution(gen);
display(x, y);
}
```
where the distribution can be simple as `{0,1}` , a interval, or a Guassian distribution.
**Edit:** For very large N, you can measure whether the mean distance `R = d(x,y)` and check whether it is scaled like `t ~ R^2`. Surely, the above code only generate one Brownian motion, in order for the relationship to hold, you have to repeat many time. Do the experiment yourself.
[Share](https://stackoverflow.com/a/10067366 "Short permalink to this answer")
[Improve this answer](https://stackoverflow.com/posts/10067366/edit)
Follow
[edited Apr 8, 2012 at 23:25](https://stackoverflow.com/posts/10067366/revisions "show all edits to this post")
answered Apr 8, 2012 at 23:20
[](https://stackoverflow.com/users/535615/unsym)
[unsym](https://stackoverflow.com/users/535615/unsym)unsym
2,20011 gold badge2020 silver badges1919 bronze badges
3
- Do note that we like to avoid giving pre-written code directly in response to [homework](https://stackoverflow.com/questions/tagged/homework) questions. (Not that this is drop-in ready, but at least bdares and Hot Licks have further raised the issue of which distribution specifically to pick that I feel they are superior answers.)
– [sarnold](https://stackoverflow.com/users/377270/sarnold "104,382 reputation")
Commented Apr 8, 2012 at 23:22
- This is not true. How far a Brownian process moves within an interval follows a Gaussian distribution.
– [Apprentice Queue](https://stackoverflow.com/users/230436/apprentice-queue "2,036 reputation")
Commented Apr 8, 2012 at 23:24
- @ApprenticeQueue: It is statistically true only when the N is very large. For small `N`, you can tell whether it is a Brownian motion
– [unsym](https://stackoverflow.com/users/535615/unsym "2,200 reputation")
Commented Apr 8, 2012 at 23:26
[Add a comment](https://stackoverflow.com/questions/10067325/random-walk-brownian-motion "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \|
Start asking to get answers
Find the answer to your question by asking.
[Ask question](https://stackoverflow.com/questions/ask)
Explore related questions
- [c++](https://stackoverflow.com/questions/tagged/c%2B%2B "show questions tagged 'c++'")
- [random](https://stackoverflow.com/questions/tagged/random "show questions tagged 'random'")
See similar questions with these tags.
- The Overflow Blog
- [Documents: The architect’s programming language](https://stackoverflow.blog/2025/08/20/documents-the-architect-s-programming-language/)
- [Research roadmap update, August 2025](https://stackoverflow.blog/2025/08/21/research-roadmap-update-august-2025/)
- Featured on Meta
- [Upcoming initiatives on Stack Overflow and across the Stack Exchange network...](https://meta.stackexchange.com/questions/411578/upcoming-initiatives-on-stack-overflow-and-across-the-stack-exchange-network-j "Upcoming initiatives on Stack Overflow and across the Stack Exchange network - July 2025")
- [Further Experimentation with Comment Reputation Requirements](https://meta.stackoverflow.com/questions/434624/further-experimentation-with-comment-reputation-requirements)
- [Updated design for the new live activity panel experiment](https://meta.stackoverflow.com/questions/434644/updated-design-for-the-new-live-activity-panel-experiment)
- [Policy: Generative AI (e.g., ChatGPT) is banned](https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned)
#### Related
[2](https://stackoverflow.com/questions/9170211/random-walk-in-java "Question score (upvotes - downvotes)")
[Random Walk in Java](https://stackoverflow.com/questions/9170211/random-walk-in-java)
[2](https://stackoverflow.com/questions/17428858/geometric-brownian-motion-in-r "Question score (upvotes - downvotes)")
[Geometric Brownian Motion in R](https://stackoverflow.com/questions/17428858/geometric-brownian-motion-in-r)
[6](https://stackoverflow.com/questions/26245828/c-random-walk-brownian-motion-program-does-not-return-expected-theoretical-va "Question score (upvotes - downvotes)")
[C: Random walk (Brownian motion) program does not return expected theoretical value. Why?](https://stackoverflow.com/questions/26245828/c-random-walk-brownian-motion-program-does-not-return-expected-theoretical-va)
[5](https://stackoverflow.com/questions/32866559/simple-2d-random-walk "Question score (upvotes - downvotes)")
[Simple 2D Random walk](https://stackoverflow.com/questions/32866559/simple-2d-random-walk)
[0](https://stackoverflow.com/questions/40217227/random-walk-in-r "Question score (upvotes - downvotes)")
[Random walk in R](https://stackoverflow.com/questions/40217227/random-walk-in-r)
[0](https://stackoverflow.com/questions/42738119/simulating-geometric-brownian-motion "Question score (upvotes - downvotes)")
[Simulating geometric Brownian motion](https://stackoverflow.com/questions/42738119/simulating-geometric-brownian-motion)
[0](https://stackoverflow.com/questions/42830455/random-walk-in-matlab "Question score (upvotes - downvotes)")
[Random Walk in Matlab](https://stackoverflow.com/questions/42830455/random-walk-in-matlab)
[0](https://stackoverflow.com/questions/55496744/random-walk-monte-carlo-simulation "Question score (upvotes - downvotes)")
[Random Walk Monte Carlo simulation](https://stackoverflow.com/questions/55496744/random-walk-monte-carlo-simulation)
[1](https://stackoverflow.com/questions/65983103/random-walk-simulation-in-r "Question score (upvotes - downvotes)")
[Random Walk Simulation in R](https://stackoverflow.com/questions/65983103/random-walk-simulation-in-r)
[1](https://stackoverflow.com/questions/72118661/clicking-sounds-in-brown-brownian-random-walk-noise "Question score (upvotes - downvotes)")
[Clicking sounds in brown/Brownian/random walk noise](https://stackoverflow.com/questions/72118661/clicking-sounds-in-brown-brownian-random-walk-noise)
#### [Hot Network Questions](https://stackexchange.com/questions?tab=hot)
- [Should I apply to volunteer while actively looking for a job, if it means I won't be volunteering for long?](https://workplace.stackexchange.com/questions/202455/should-i-apply-to-volunteer-while-actively-looking-for-a-job-if-it-means-i-won)
- [Aircraft propelled by Liquid Rocket Engines](https://physics.stackexchange.com/questions/857936/aircraft-propelled-by-liquid-rocket-engines)
- [Can I use a PCIe 4.0 M.2 NVMe SSD on a PCIe 3.0 M.2 NVMe slot?](https://superuser.com/questions/1919290/can-i-use-a-pcie-4-0-m-2-nvme-ssd-on-a-pcie-3-0-m-2-nvme-slot)
- [Is there a way to find someone to be a co-signer if you have no other option?](https://money.stackexchange.com/questions/166537/is-there-a-way-to-find-someone-to-be-a-co-signer-if-you-have-no-other-option)
- [How to make a thick spiky wavy line?](https://tex.stackexchange.com/questions/750014/how-to-make-a-thick-spiky-wavy-line)
- [Perspectives on a crumpled word](https://puzzling.stackexchange.com/questions/132953/perspectives-on-a-crumpled-word)
- [Why is a CA certificate (HARICA TLS RSA Root CA 2021) listed in CCADB not in Windows Certificate store?](https://superuser.com/questions/1919651/why-is-a-ca-certificate-harica-tls-rsa-root-ca-2021-listed-in-ccadb-not-in-win)
- [What is causing the LED to turn on instantly as opposed to after a delay in this circuit?](https://electronics.stackexchange.com/questions/754042/what-is-causing-the-led-to-turn-on-instantly-as-opposed-to-after-a-delay-in-this)
- [How did Louis XIV raise an army half the size of Aurangzeb's with only a tenth of the revenue?](https://history.stackexchange.com/questions/79359/how-did-louis-xiv-raise-an-army-half-the-size-of-aurangzebs-with-only-a-tenth-o)
- [For a router, is storing the Wi-Fi password in plain text in its own storage/firmware considered a vulnerability, or is it standard practice?](https://security.stackexchange.com/questions/281921/for-a-router-is-storing-the-wi-fi-password-in-plain-text-in-its-own-storage-fir)
- [A Rubik's Cube game in Python](https://codereview.stackexchange.com/questions/297944/a-rubiks-cube-game-in-python)
- [Should theological questions be considered philosophical questions and dealt with by philosophers?](https://philosophy.stackexchange.com/questions/129725/should-theological-questions-be-considered-philosophical-questions-and-dealt-wit)
- [Scattering objects in an organised pattern on a surface](https://blender.stackexchange.com/questions/338288/scattering-objects-in-an-organised-pattern-on-a-surface)
- [Book with an alien world whose lifeforms are made of reeds](https://scifi.stackexchange.com/questions/298798/book-with-an-alien-world-whose-lifeforms-are-made-of-reeds)
- [How was the th' in older poems pronounced?](https://literature.stackexchange.com/questions/29640/how-was-the-th-in-older-poems-pronounced)
- [It is widely reported that COGAT stopped aid starting from March 2nd. What official statements do we have from the Israeli government to that effect?](https://politics.stackexchange.com/questions/93372/it-is-widely-reported-that-cogat-stopped-aid-starting-from-march-2nd-what-offic)
- [Bounded linear functional and Gateaux derivative](https://math.stackexchange.com/questions/5091285/bounded-linear-functional-and-gateaux-derivative)
- [Why \`\\bar\` with unicode-math was shifted right even with latin modern math by default?](https://tex.stackexchange.com/questions/749962/why-bar-with-unicode-math-was-shifted-right-even-with-latin-modern-math-by-de)
- [Which fields satisfy first-order induction?](https://mathoverflow.net/questions/499343/which-fields-satisfy-first-order-induction)
- [Can this civilization land their biplanes in the air?](https://worldbuilding.stackexchange.com/questions/268788/can-this-civilization-land-their-biplanes-in-the-air)
- [Stop periodic WiFi scanning when already connected to a WiFi network](https://unix.stackexchange.com/questions/798972/stop-periodic-wifi-scanning-when-already-connected-to-a-wifi-network)
- [How to prove an example of uncorrelated but not independent?](https://stats.stackexchange.com/questions/669694/how-to-prove-an-example-of-uncorrelated-but-not-independent)
- [Is it true that string theory is definitively wrong on account of it being a theory of an anti de Sitter space?](https://physics.stackexchange.com/questions/857993/is-it-true-that-string-theory-is-definitively-wrong-on-account-of-it-being-a-the)
- [Why wrap fruitcake in grease-proof paper?](https://cooking.stackexchange.com/questions/132990/why-wrap-fruitcake-in-grease-proof-paper)
[more hot questions](https://stackoverflow.com/questions/10067325/random-walk-brownian-motion)
[Question feed](https://stackoverflow.com/feeds/question/10067325 "Feed of this question and its answers")
# Subscribe to RSS
Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

lang-cpp
##### [Stack Overflow](https://stackoverflow.com/)
- [Questions](https://stackoverflow.com/questions)
- [Help](https://stackoverflow.com/help)
- [Chat](https://chat.stackoverflow.com/?tab=explore)
##### [Products](https://stackoverflow.co/)
- [Teams](https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams)
- [Advertising](https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising)
- [Talent](https://stackoverflow.co/advertising/employer-branding/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=talent)
##### [Company](https://stackoverflow.co/)
- [About](https://stackoverflow.co/)
- [Press](https://stackoverflow.co/company/press/)
- [Work Here](https://stackoverflow.co/company/work-here/)
- [Legal](https://stackoverflow.com/legal)
- [Privacy Policy](https://stackoverflow.com/legal/privacy-policy)
- [Terms of Service](https://stackoverflow.com/legal/terms-of-service/public)
- [Contact Us](https://stackoverflow.com/contact)
- Cookie Settings
- [Cookie Policy](https://policies.stackoverflow.co/stack-overflow/cookie-policy)
##### [Stack Exchange Network](https://stackexchange.com/)
- [Technology](https://stackexchange.com/sites#technology)
- [Culture & recreation](https://stackexchange.com/sites#culturerecreation)
- [Life & arts](https://stackexchange.com/sites#lifearts)
- [Science](https://stackexchange.com/sites#science)
- [Professional](https://stackexchange.com/sites#professional)
- [Business](https://stackexchange.com/sites#business)
- [API](https://api.stackexchange.com/)
- [Data](https://data.stackexchange.com/)
- [Blog](https://stackoverflow.blog/?blb=1)
- [Facebook](https://www.facebook.com/officialstackoverflow/)
- [Twitter](https://twitter.com/stackoverflow)
- [LinkedIn](https://linkedin.com/company/stack-overflow)
- [Instagram](https://www.instagram.com/thestackoverflow)
Site design / logo © 2025 Stack Exchange Inc; user contributions licensed under [CC BY-SA](https://stackoverflow.com/help/licensing) . rev 2025.8.21.33163 |
| Readable Markdown | null |
| Shard | 169 (laksa) |
| Root Hash | 714406497480128969 |
| Unparsed URL | com,stackoverflow!/questions/10067325/random-walk-brownian-motion s443 |