⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 random.cpp

📁 产生任意均值与方差的正态分布随机数序列 产生任意均值与方差的正态分布随机数序列
💻 CPP
字号:
#include <random.h>
#include <iostream.h>
#include <time.h>
using namespace std;
void main()
{
double mu=1.0,ro=1.5;
valarray<double>rip(40);
size_t stCount=40;
double seed=(double)time(NULL);
cout.setf(ios::fixed|iod::left);
cout.precision(6);
rand_NormalDistributing_Series(mu,ro,seed,rip,stCount);
ValarrayPrint(rip);
cout<<endl;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -