Is reflection and refraction the same thing - bouncing of light?

This is one of the places where wave particle dualism gets some people in trouble. Many are taught that it means that light can be a wave and a particle, and that phrasing can lead to some confusion. I find it more intuitive to just rip the bandaid off quickly and say light is neither a wave nor a particle. It is something which, in some situations, can be well modeled as a wave, and in some situations can be well modeled as a particle, but it is its own thing (which can be well modeled in all known cases using a more complicated concept, a "wavefunction").

You can think of photons getting randomly reflected or transmitted on the boundary, but the truth is that the billiard-ball photon model really isn't very effective at describing what happens at this boundary. This is one of the regions where wave mechanics models the effects very well, while particle models don't do so well. If you use wave mechanics, the idea of a wave getting partially reflected and partially transmitted isn't difficult to believe at all. In fact, it's pretty easy to prove.

Thinking in wave terms at these boundaries also gives correct answers in peculiar situations where the particle model simply falls on its face. Consider the interesting case of an "evanescent wave."

Biosensor

In this setup, the laser and prism are set up at the correct angles to cause "total internal reflection." This means that, by the simple models, 100% of the light should bounce off the side of the prism and into the detector. Indeed, if the prism is in the open air, we do see 100% reflection (well, within the error bars of absorption). However, bring an object close to the prisim (but not touching) and things change. You end up seeing effects from the object, even though 100% of the light was supposed to be reflected!

If you think of light like photons, this is hard to explain. If you look at it as a wave governed by Maxwell's equations, you see that you would violate the law of conservation of energy if there was a "pure" reflection. Instead it creates a reflection and an "evanescent wave" which is outside the prism, and its strength falls off exponentially, which is really hard to explain with particles!

Of course, these too are all simplifications. The real answer to your question is that the wavefunction of the light interacts with the electromagnetic fields of the atoms in the prisim, and the result of that interaction leads to reflection, refraction, diffusion, absorption, and eveansecent waves. However, naturally those equations are a bit harder to understand, so we use the older, simpler models from before quantum mechanics. We just have to be sure to use the one which is most applicable in any given situation, because none of them are quite right.


what determines whether a ray of light is being reflected or refracted.

While going from one medium to another there are three possible actions of photons:

  1. The beam gets reflected. The photon has momentum and some part of this momentum over goes to the medium and the re-emitted (reflected) photon has less energy content and it's wavelength is red-shifted.
  2. The beam goes into a denser medium and the photons moves with less the speed of light for vacuum through this medium. By this the photon gets bended (refracted).
  3. The beam goes into a less densely medium and the photon moves with a greater speed than in the denser medium. by this the photon gets refracted in the direction opposite to case 2.

Usually case 1 and 2 as well as 1 and 3 are taking place commonly.

Some theoretical facts

Any beam of light consists of photons (this easily to be seen if one investigate about the production of light, which happens always from excited subatomic particles).

Photons are indivisible quanta and couldn't be divided during their live between emission and absorption.

For reflected photons the incoming and the outgoing angles are identical. This is used in reflecting telescopes which haven't any chromatic aberrivation.

For refracted photons - like in this prism the refraction angle depends from their wavelengths:

enter image description here

But the photons wavelengths stay the same and the photons are not splitted into a refracted and a reflected photon.

Your assumptions

So your first guess

what about each individual photon; does the photon split into two, and one half is reflected while the other one is refracted?

is not right.

does some photons reflect and some refract, and if so what determines what happens to which photon?

Perhaps you know that photons have an electric field component an a magnetic field component, both perpendicular to the direction of propagation and to each other. I'll focusing on the electric field component, but everything now being said is right for the magnetic field component too. The direction of the electric field of photons from a thermic source (light bulb, fire, ...) is randomly distributed around 360°.

Dependent from the angle at which the beam is directed to the prism, more (or less) light is going through the prism and less (or more) light es reflected. It was found that the two beams are polarized. Means, the electric field of the photons has a preferential direction.

Polarization of light

What happens to the photons? Using polarized light you will see what happens. Rotate the direction of polarization and you will see that at one moment the light gets more and more reflected and 90° later it gets more through the prism. So the direction of the electric field of the photon determines the behavior of the interaction with the prism.