You call this
getitem callfunc("F_Rand",30016,30007,30012,30008,30018,30015,30011,30010),1;
That's function F_Rand take 1 arguments is item id.
Then you can easy send more argument to function like how much percent do you want to increase chance at index or whatever.
By the way there are many ways to it.