|Where did you hide your language?||topic started 3/15/2001; 4:37:01 PM
last post 3/15/2001; 5:20:20 PM
|Arnold K. Pizer - Re: Where did you hide your language?
3/15/2001; 5:20:20 PM (reads: 1162, responses: 0)
as you guessed random(a,b,c) picks a random number between a and b with
step size c. This is an example of a WeBWorK macro which was written to
make it easier to write problems. Most of these macros are contained in
the files PGbasicmacros.pl, PGchoicemacros.pl, PGgraphmacros.pl and
One way to find information is to type e.g. "random" in the search box to the left. This may bring up helpful information. Unfortuately, the real documentation for random is contained in the script itself and a nice version is created on the fly when you access it. However, this means the search routine doesn't find it so you have to know where to look. So I finally come to the answer to your question.
Start at the left and follow the path: Write-modify problems/PG advanced reference/Macros in the file PGbasicmacros.pl. Then use your web brower to search for random on this page. You will find:
Pseudo-random number generator
Another good reference is Tom Shemanske's WeBWorK Newbie Guide.