## WeBWorK Main Forum

### Re: Correct zero answer not being accepted

by Davide Cervone -
Number of replies: 0
Why does "random" return a perl number rather than a MathObjects Real in the first place?

Because random() long predates the development of the MathObjects library.

The isnum() approach does look useful for this. I will put it on the to-do list.

Davide