(SOLVED) How to make an object choose a random direction when spawned?

I’m trying to make an enemy randomly choose a direction (left or right) when spawned. I’m not sure how to do it but it should be a pretty simple game mechanic. I think it has to do something with the variables.

Here is a picture to visualize what I mean.

Use Random(1) to randomly get a 0 or 1. Then act on whatever the random value is:

Oh yeah that makes sense