How to pick a random number between 1-50 and enter it as a parameter

Thanks! I think I'm close but now just need to get the variable into the parameter of the device but I'm getting an error.

image

image

but I'm getting this error;