Sample in a variable?

I was already taught by you folks that I can make a damage formula [20,100,150,200].sample to output one of those as a damage amount.

That information has been extremely helpful and I appreciate that information. I have been using it in several projects.

But, what if I wanted [20,100,150,200].sample in a variable? Like I want the variable to generate a random number consisting of 20, 100, 150, or 200?

Do I just select "script" and input [20,100,150,200].sample like you do for a formula? I want a random amount of gold to be awarded with this in a chest.
Yep. just put that in the script part of change variables.
That you very much! It worked! This is extremely helpful! A real game changer for RNG with specific values.

Original thread: https://forums.rpgmakerweb.com/threads/sample-in-a-variable.164663/