Consider a starting position at some zero point. We toss a coin that tells a man to move forward or backward. He ends up at either the +1 or the -1 position, the next toss of the coin will take him to the +2 or the 0 position, depending on whether the toss tells him to move forward or back. Similarly from the -1 position he could move to zero or -2. An individual photon at the stellar core may be absorbed, re-emitted, absorbed again and re-emitted many times in succession. The direction in which the photon is emitted may bear no relation at all to the direction in which it was traveling just before absorption. The photon may then travel randomly, until it reaches the surface of the star.

This random walk can be described statistically. We can estimate the total distance covered by the photon before final escape and at any time in its travel, we can predict the approximate distance of the photon from the star. An individual photon at the stellar core may be absorbed, re-emitted, absorbed again and re-emitted many times in succession. The direction in which photon is emitted may bear no relation at all to the direction in which it was traveling just before absorption. The photon may then travel randomly, until it reaches the surface of the star.

Radiative energy transport can be described as a random walk, where a photon repeatedly absorbed and re-emitted in a random direction. Let the step length of the walk (the mean free path) be *d*. Consider, for simplicity, the random walk in a plane. After one step the photon is absorbed at

where is an angle giving the direction of the step. After *N* steps the coordinates are

and the distance from the starting point is,

The first term in square brackets can be written as,

Since the directions are randomly distributed and independent,

The same result applies for the second term in square brackets. Then,

After *N* steps the photon is at the distance from the starting point. Given a mean free path of photon *d* and *a* random distribution of scattering angles, determine overall displacement *r* after a certain number *N* scattering events.

Thus, the statistical average of the overall displacement *r* after *N* steps is simply .

The time taken by photon to reach the surface from the center depends on the mean free path that is *d*.

We know that

Here, k is the mass absorption coefficient and is the density (that is mean density of the radiative core). For a typical 1 solar mass star,

Thus,

Now, the number of steps needed to reach radius *r*,

We know that the solar radius

Thus the number of steps is

The total path traveled by the photon is

and the time taken is

This is a very **rough and highly approximated calculation** and gives a time of as the time taken by the photon to reach the surface of the Sun.