Let's say, I have a function:

```
var rand = function(n) {
    return Math.floor(Math.random() * n);
}

```

Can I use this function in both Content Script and Background Script without copypaste?

Thank you.