User defined:

Define your own speed function below with Javascript in terms of time t (optional array, length 4, of random variables rand):