MV Give random Item through scripts

Hi, I'm kinda new to using scripts

I want to give item a random item through a script, ex :

* Edit variable 021 = Random 10..13
* Script :
Code:
$gameParty.gainItem($gameVariables.value(21), 1)

But it doesn't work T_T

Can you help me a bit ?
$gameParty.gainItem($dataItems[$gameVariables.value(21)], 1);
Thanks a lot

Original thread: https://forums.rpgmakerweb.com/threads/give-random-item-through-scripts.174454/