- 博客(1)
- 问答 (1)
- 收藏
- 关注
原创 初学c++ (001) 随机数字生成
使用 timer进行随机种子生成,用rand基于RAND_MAX样本空间进行随机数字生成主,除以最大值 ,就能生成0-1的随机浮点数字。#include <iostream>#include <cstdlib>#include <iomanip>#include <time.h>int main() { time_t t; srand((unsigned)time(&t)); cout << " Random
2022-01-14 09:38:50 477
空空如也
Git push for tag meet is up-to-date error
2021-07-20
TA创建的收藏夹 TA关注的收藏夹
TA关注的人