Is the following a pure function?

```
function test(min,max) {
   return  Math.random() * (max - min) + min;
}

```

My understanding is that a pure function follows these conditions:

1. It returns a value computed from the parameters
2. It doesn't do any work other than calculating the return value

If this definition is correct, is my function a pure function? Or is my understanding of what defines a pure function incorrect?