A Random Approach to Time-Optimal Control