I found a script that generates random linear functions based on selecting random numbers for m (slope) and b(intercept). However, it only uses positive “b” values because in the note it has the following script: content:“The function graphed to the left is `f(x)={slope}x+{yInt}`”

So it is putting in the + sign between the mx and the b. If I use a negative number, it generates the following as an example: y = 2x + - 3.

I need a way to have it show y=mx+b when a random + b value is generated and to show

y=mx-b when a -b value is generated.