How can a developer force a probabilistic algorithm relying on pseudo-random numbers to run deterministically for debugging?

Answer

By providing the algorithm with the same starting value, known as a seed

Pseudo-random number generators produce identical sequences if they begin from the same initial value (seed), allowing engineers to replay the exact sequence of random events that caused a failure.

How can a developer force a probabilistic algorithm relying on pseudo-random numbers to run deterministically for debugging?
probabilityalgorithmcomputationdeterminismcomputer science