From 000cd8fb45da8eb4f823102d56ae6fa10b67f2ab Mon Sep 17 00:00:00 2001 From: Akira Takahashi Date: Thu, 19 Dec 2024 22:18:14 +0900 Subject: [PATCH] =?UTF-8?q?philox=5Fengine=E3=81=AE=E3=82=B5=E3=83=B3?= =?UTF-8?q?=E3=83=97=E3=83=AB=20:=20=E3=83=AB=E3=83=BC=E3=83=97=E5=86=85?= =?UTF-8?q?=E3=81=A7=E3=82=AA=E3=83=96=E3=82=B8=E3=82=A7=E3=82=AF=E3=83=88?= =?UTF-8?q?=E3=82=92=E4=BD=9C=E3=82=8B=E3=82=88=E3=81=86=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reference/random/philox_engine.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/reference/random/philox_engine.md b/reference/random/philox_engine.md index 4a60b07dc1..4fa2ae4b5c 100644 --- a/reference/random/philox_engine.md +++ b/reference/random/philox_engine.md @@ -213,13 +213,12 @@ struct Vector { int main() { std::uint32_t seed = 12345; - std::philox4x32 engine; // 2x2x2個のランダムなベクトルを生成する for (std::uint32_t x = 0; x < 2; ++x) { for (std::uint32_t y = 0; y < 2; ++y) { for (std::uint32_t z = 0; z < 2; ++z) { - engine.seed(seed); + std::philox4x32 engine{seed}; engine.set_counter({x, y, z, 0}); std::uniform_real_distribution dist{0, 1.0}; @@ -236,7 +235,6 @@ int main() } ``` * std::philox4x32[link philox4x32.md] -* engine.seed[link philox_engine/seed.md] * engine.set_counter[link philox_engine/set_counter.md] * uniform_real_distribution[link /reference/random/uniform_real_distribution.md] * std::uint32_t[link /reference/cstdint/uint32_t.md]