Choose between one value and another (Javascript)

So I’m trying to set up a coordinate that chooses between one x value (45) and another (-45). I haven’t found a way to do this quickly that doesn’t involve a lot of script and Random.Range

Not sure what you are looking for:

var val = (Random.value <= 0.5) ? 45.0 : -45.0;