Before measurement, a quantum particle exists in a superposition - a probability cloud of all possible positions. The brighter areas have higher probability.
Click to measure! The wave function instantly collapses to a single definite position. The probability of where it appears depends on the brightness of the cloud at that location. This is the measurement problem in quantum mechanics.