从Excel工作表的colm中获取随机值

问题描述:

嗨!
请帮帮我.我在C#Windows窗体中有一个按钮和一个文本框.我有一个Excel工作表,其中有一个colmn,其中包含100个值.我想要的是,当我单击按钮时,它将来自该colm的随机值并显示在文本框中.
请告诉我该怎么做.
在此先感谢

Hi!
please help me out. i have a button and a text box in my c# windows form. and i have an excel sheet that have one colmn which contains 100 values. what i want is that when i click on button it take the random values from that colm and show it in the text box.
please tell me how to do it.
thanks in advance

^ ]并将其用作该列的索引.
Start with a random number[^] and use that as an index into the column.