The function myRand replies to variables, which are assigned to the variables x and s.
In the line [a,s]=x you try to assign the variable x to two variables, and this is a syntax error. What do you want to achieve? That a and s have the value x? Then: