Excel函数教程—使用RAND函数返回随即数
时间:2023-11-09 21:28:42
其实Excel的函数多种多样,什么功能都有。比如RAND()函数就是将生成一个大于等于0小于1的均匀分布的随机数。就是你划分出一个区间,它会自动生成一个随机数。例如:下面是分别在100~200、200~300、300~400三个数值各取一个数字。
操作步骤
在A2单元格中输入RAND函数公式。然后系统得出一个随机数。
如要不需要小数点后面的数字,则可以在RAND函数前面加上INT函数,即可取得单元格内的整数部分。
在B2单元格中输入“INT(RAND()*(300-200)+200)”,就可以让系统随即生成一个200~300区间内的数值。
在C2单元格中输入“INT(RAND()*(400-300)+300)”,就可以让系统随即生成一个300~400区间内的数值。
标签:函数,单元格,数值,随机数,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
赛博朋克2077是什么游戏?
2023-05-17 07:26:38
![](https://img.aspxhome.com/file/2023/6/a324830_0s.png)
AMD强力施压 N卡供需稳定
2023-12-19 05:20:39
![](https://img.aspxhome.com/file/2023/2/a287618_0s.jpg)
如何在 Mac 上缩小
2023-03-31 22:42:50
![](https://img.aspxhome.com/file/2023/10/a343884_0s.jpeg)
可以通过点击排序和筛选-消除项来实现所有筛选项的消除操作
2022-01-22 05:55:40
PowerPoint绘制立体棱台
2023-05-27 00:43:08
![](https://img.aspxhome.com/file/2023/10/a344895_0s.png)
Win7/Win8.1升级安装Win10后 开始菜单默认只有一栏磁贴
2022-08-17 08:26:00
![](https://img.aspxhome.com/file/2023/28/a249113_0s.jpg)
Wps如何快速创建表格文件超链接?Wps快速创建表格文件超链接的方法
2022-06-13 12:08:17
![](https://img.aspxhome.com/file/2023/5/a182265_0s.gif)
Excel中计算工龄和年龄的几种常见方法总结
2023-07-28 05:50:31
![](https://img.aspxhome.com/file/2023/8/a163028_0s.gif)
word设置图片水印的两种方法
2022-10-20 15:29:07
苹果正在研发类似Surface Book的可拆卸Macbook
2022-01-22 22:19:40
![](https://img.aspxhome.com/file/2023/9/a209529_0s.jpeg)
腾讯会议虚拟背景机型不支持怎么办?
2022-03-11 19:16:07
![](https://img.aspxhome.com/file/2023/30/a266032_0s.jpg)
Win11此应用无法在你的电脑上运行怎么办?
2022-12-24 20:40:34
![](https://img.aspxhome.com/file/2023/27/a235779_0s.jpg)
电脑出现问题怎么恢复系统?教你快速恢复Win10系统电脑
2023-11-28 09:51:12
![](https://img.aspxhome.com/file/2023/9/51179_0s.png)
戴尔开机黑屏 The AC power adapter wattage解决办法
2022-05-21 02:45:25
![](https://img.aspxhome.com/file/2023/3/a300035_0s.jpg)
Win11看不到工作组计算机怎么办?Win11搜索不到工作组计算机解决方法
2022-05-27 00:11:52
![](https://img.aspxhome.com/file/2023/28/a239994_0s.jpg)
Win10经常提示Debug Assertion Failed怎么解决?
2023-01-07 15:37:43
![](https://img.aspxhome.com/file/2023/1/a279080_0s.jpg)
技嘉主板bios如何设置中文
2022-06-11 14:14:13
![](https://img.aspxhome.com/file/2023/3/a298348_0s.png)
如何利用PPT制作文字云效果
2023-01-13 16:00:19
![](https://img.aspxhome.com/file/2023/10/a352667_0s.gif)
Win7无法安装字体怎么办?Win7无法安装字体的解决方法
2022-10-21 09:13:23
![](https://img.aspxhome.com/file/2023/27/a230313_0s.jpg)
wps演示以自选图形为指定动画路径
2022-05-06 20:56:14
![](https://img.aspxhome.com/file/2023/0/a164730_0s.png)