## WeBWorK Main Forum

### Re: uniform seeds

by Paul Pearson -
Number of replies: 0
Hi Alex,

Here's an example of how to get two different PG files to use the same seed for randomization.  Put the following line in both PG files after loadMacros() but before any random() calls:

SRAND($psvn); #$psvn = problem set version number

and then make sure the PG files are in the same homework set.

Example in the OPL:

Library/Michigan/Chap7Sec4/Q01.pg
Library/Michigan/Chap7Sec4/Q08.pg

If you want to do this course wide, perhaps make sure that all of the webwork problems you're using have