Skip to content

Commit

Permalink
生成した乱数のimplicit conversionを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
yknishidate committed Aug 2, 2023
1 parent 5539a02 commit e279f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reference/random.md
Expand Up @@ -170,8 +170,8 @@ int main()
std::ofstream file("random.tsv");
for (size_t i = 0; i < 1000*1000; ++i) {
// 各分布法に基いて乱数を生成
double r1 = dist1(engine);
double r2 = dist2(engine);
float r1 = dist1(engine);
float r2 = dist2(engine);

file << r1 << "\t" << r2 << "\n";
}
Expand Down

0 comments on commit e279f87

Please sign in to comment.