Using same random generated values for multiple problems

Is there a way to generate random values in a problem and use them in other tasks / subtasks?