I am considering if I can define one random parameter, which can randomly pick one value from one dataset (assume stored in a parameter or table) each scenario. This can be also referred as sampling, and I know in stochastic programming GAMS can use EMS to do this. However, my goal here is just to randomly pick one value from a given dataset and store it in the parameter or scalar, like the following pseudocode:
That is to say, I want to the random scalar obeys the scenario index, but randomly pick one value from Dataset in each scenario, where Dataset is a given parameter.