Here's a way to do that. Use the following line somewhere before you create any random numbers:
$seed = 0; map {$seed += ord($_)} split(//,$studentID); SRAND($seed);This reseeds the problem using a number that is created from the students ID (it turns each letter in the name into its ASCII value and then adds them up). This means each student (probably) has a different seed value, but any problems that start this way will have the SAME seed for each student.
If you use this at the top of both problems, and create the random variables in the same order in each problem, then each student should have the same random numbers in both problems.
Hope that does it for you.
Davide