{"blog_url":"https://owiewowe.hatenablog.com/","title":"rust rand=\"0.8.4\"\u3067gen_range\u304c\u52b9\u304b\u306a\u3044","blog_title":"19\u65e5\u306b\u66f4\u65b0\u3057\u3066\u305f","categories":[],"author_url":"https://blog.hatena.ne.jp/owiewowe/","published":"2021-10-19 17:12:00","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fowiewowe.hatenablog.com%2Fentry%2F2021%2F10%2F19%2F171200\" title=\"rust rand=&quot;0.8.4&quot;\u3067gen_range\u304c\u52b9\u304b\u306a\u3044 - 19\u65e5\u306b\u66f4\u65b0\u3057\u3066\u305f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","description":"rust \u9762\u767d\u3044\u3002\u3044\u308d\u3044\u308d\u3068\u904a\u3093\u3067\u307f\u3088\u3046\u304b\u3068 Rust Cookbook \u306a\u308b\u65e5\u672c\u8a9e\u5316\u3055\u308c\u305f\u30da\u30fc\u30b8\u3092\u767a\u898b\u3057\u305f\u306e\u3067\u3001\u611f\u8b1d\u3057\u3064\u3064\u3001\u65e9\u901f\u5199\u7d4c\u3057\u3066\u307f\u3088\u3046\u3068\u306f\u3058\u3081\u3066\u307f\u307e\u3057\u305f\u3002uma0317.github.io\u3067\u30011.1 \u306e\u201d\u4e71\u6570\u306e\u751f\u6210\u201d\u3001\"\u7bc4\u56f2\u3092\u6307\u5b9a\u3057\u3066\u4e71\u6570\u3092\u4f5c\u308b\"\u3092\u3057\u3088\u3046\u304b\u3068 Cargo.toml \u306b rand = \"0.8.4\"\u3068\u3059\u3050\u4e0a\u306b\u66f8\u304b\u308c\u3066\u3044\u3066\u3001\u201d\u4e71\u6570\u306e\u751f\u6210\u201d\u3067\u52d5\u3044\u305f crate \u3092\u305d\u306e\u307e\u307e\u3001main.rs \u306b use rand::Rng; fn main() { let mut rng=rand::thread_rng(); println!(\"{} {}\",rng.gen_range(0.\u2026","author_name":"owiewowe","url":"https://owiewowe.hatenablog.com/entry/2021/10/19/171200","provider_name":"Hatena Blog","image_url":null,"type":"rich","height":"190","version":"1.0"}