MV Random Game Variable Script Call for Set Variable of given number in a series

Hello everyone,
let's say I need to choose randomly between 1, 4, 76, 165.

$game_variables[1] = rand(1, 4, 76, 165)

unfortunately doesn't work. What do you suggest?
Hello!
$game_variables[1]
This doesn't seem right, is it for RMMV?

rand(1, 4, 76, 165)
This function does not exist in Javascript.
sorry for being noob, yes it is for RMMV. I'd need to set a variable from a given series of values.
What do you suggest to try?
Let's say I want variable 1 to set a random value between: 1, 4, 76, 165, 254, 1456.
sorry for being noob
One thing that might help is reading the manual that comes with the software.
There is also this spreadsheet that was made with the help of several collaborators where you can see all the Javascript commands available within your project:
RPG MAKER MV / MZ Script Calls

About your question, example with Script Command:
Code:
◆Script:var num=[1,2,3,4];
:      :var result=num[Math.floor(Math.random() * num.length)];
:      :$gameVariables.setValue(1, result);
◆Text:None, Window, Bottom
:    :Result: \v[1]

Good luck 🙂 👍
It works. Thank you very much

Original thread: https://forums.rpgmakerweb.com/threads/random-game-variable-script-call-for-set-variable-of-given-number-in-a-series.141011/