Compilation error with Randomization

Hello,

I am randomizing questions using macros, following exactly the example laid out in the Public Example: Randomizing Order of Questions instrument. However, when I compile I am receiving an error for the string variable that is created to complete the randomization. The error states that the Expression has a syntax error and “Invalid expression term ‘=’”. The syntax I created for the expression is below:

(new Func( () => {
$rand_eng[0];
})).Invoke()

Why is this creating an issue with the compilation, and how can I correct it? Thank you!