|
|
| version 1.14, 2002/02/18 12:10:53 | version 1.16, 2002/03/27 15:30:34 |
|---|---|
| Line 29 public: | Line 29 public: |
| void configure_admin(Request& r); | void configure_admin(Request& r); |
| public: // Methoded | public: // Methoded |
| bool used_directly() { return true; } | bool used_directly() { return false; } |
| }; | }; |
| // methods | // methods |
| Line 40 static void _random(Request& r, const St | Line 40 static void _random(Request& r, const St |
| Value& range=params->as_junction(0, "range must be expression"); | Value& range=params->as_junction(0, "range must be expression"); |
| double top=r.process(range).as_double(); | double top=r.process(range).as_double(); |
| if(top<=1) | if(top<=1) |
| throw Exception(0, 0, | throw Exception("parser.runtime", |
| &method_name, | &method_name, |
| "top must be above 1 (%g)", top); | "top must be above 1 (%g)", top); |