openwebwork/pg — pull request #31 by aubreyja (2013-06-21 05:54:40+00:00)
Title: Modification to AskSage() to allows passing $problemSeed to SAGE's set_random_seed()

Also, sage blocks should ``print``the result of their computation. So, e.g.
```
Context("Matrix");
$python=<$problemSeed});
$M = Matrix($sage);

$python2 =<$problmeSeed});
$ans = Matrix($sage2);
Context()->texStrings;
BEGIN_TEXT

Row reduce \( $M \) $BR
\{ $ans->ans_array\}
END_TEXT
Context()->normalStrings;
ANS($ans->cmp());
```