C4 W4: the purpose of tie-in function

Hi all,
can anyone explain the purpose of using the tie_in function in the following line of code:

rng = fastmath.stop_gradient(tie_in(vecs, rng))

also, I need a profound explanation of the overall purpose of the above line.