从Excel工作表的colm中获取随机值 [英] take random values from a colm in excel sheet

查看:117
本文介绍了从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.


这篇关于从Excel工作表的colm中获取随机值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆