Need Assistance in Correcting the Code for Generating Random Weight for KISH Grid

RandomTable[(int)Math.Floor(Quest.IRnd()*3000.0)+@rowindex].rnd

@sergiy please assist here. I’m trying to generate random numbers.What could be the mistake in my syntax here?

RandomTable[(int)Math.Floor(Quest.IRnd()*3000.0)+@rowindex].rnd