{"id":47189,"date":"2026-09-11T09:41:50","date_gmt":"2026-09-11T00:41:50","guid":{"rendered":"https:\/\/genai-ai.co.jp\/ai-kanri\/?p=47189"},"modified":"2026-09-11T09:41:50","modified_gmt":"2026-09-11T00:41:50","slug":"cc-python-random-guide","status":"publish","type":"post","link":"https:\/\/genai-ai.co.jp\/ai-kanri\/blog\/cc-python-random-guide\/","title":{"rendered":"\u30102026\u5e749\u6708\u6700\u65b0\u3011Python\u306erandom\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4f7f\u3044\u65b9\u3092\u5b8c\u5168\u89e3\u8aac\uff5cchoice\u30fbsample\u30fbseed\u304b\u3089\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6ce8\u610f\u70b9\u307e\u3067"},"content":{"rendered":"\n<style>\n.g-flow-row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;align-items:center;}\n.g-flow-item{background:linear-gradient(135deg,#1a1a1a,#2a1015);color:#fff;border-radius:8px;padding:16px 14px;min-width:130px;flex:1;text-align:center;}\n.g-flow-arrow{color:#dc2626;font-size:20px;font-weight:700;}\n.g-card-row{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 32px;}\n.g-card-row>div{flex:1;min-width:220px;}\n@media(max-width:600px){\n  .g-flow-row{flex-direction:column;}\n  .g-flow-arrow{transform:rotate(90deg);}\n  .g-card-row{flex-direction:column;}\n  .g-card-row>div{min-width:100%;}\n}\n<\/style>\n\n\n\n<div style=\"margin:0 0 32px;\">\n  <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/thumb-cc-python-random-guide-2.jpg\" alt=\"\u30102026\u5e749\u6708\u6700\u65b0\u3011Python\u306erandom\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4f7f\u3044\u65b9\u3092\u5b8c\u5168\u89e3\u8aac\uff5cchoice\u30fbsample\u30fbseed\u304b\u3089\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6ce8\u610f\u70b9\u307e\u3067\" style=\"width:100%;height:auto;border-radius:12px;display:block;\">\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Python\u3067\u4e71\u6570\uff08\u30e9\u30f3\u30c0\u30e0\u306a\u5024\uff09\u3092\u4f7f\u3044\u305f\u3044\u3068\u304d\u3001\u591a\u304f\u306e\u4eba\u304c\u6700\u521d\u306b\u624b\u3092\u4f38\u3070\u3059\u306e\u304c\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306e<code>random<\/code>\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002<code>random.randint()<\/code>\u3084<code>random.choice()<\/code>\u306f\u521d\u5fc3\u8005\u5411\u3051\u306e\u6559\u6750\u3067\u3082\u3088\u304f\u767b\u5834\u3057\u307e\u3059\u304c\u3001\u5b9f\u306f<strong>\u300c\u3069\u306e\u95a2\u6570\u3092\u4f7f\u3046\u3079\u304d\u304b\u300d\u3092\u6b63\u3057\u304f\u7406\u89e3\u3057\u3066\u3044\u306a\u3044\u3068\u3001\u610f\u56f3\u3057\u306a\u3044\u30d0\u30b0\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u30ea\u30b9\u30af\u306b\u3064\u306a\u304c\u308b<\/strong>\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001random\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u57fa\u672c\u95a2\u6570\u3092\u6574\u7406\u3057\u305f\u3046\u3048\u3067\u3001\u521d\u5fc3\u8005\u5411\u3051\u6559\u6750\u3067\u306f\u898b\u843d\u3068\u3055\u308c\u304c\u3061\u306a<strong>random.choices()\u3068random.sample()\u306e\u9055\u3044<\/strong>\u3001<strong>seed()\u306b\u3088\u308b\u518d\u73fe\u6027\u306e\u78ba\u4fdd<\/strong>\u3001\u305d\u3057\u3066\u6700\u3082\u91cd\u8981\u306a<strong>\u300c\u30d1\u30b9\u30ef\u30fc\u30c9\u3084\u30c8\u30fc\u30af\u30f3\u306e\u751f\u6210\u306brandom\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u7406\u7531\u300d<\/strong>\u307e\u3067\u3001\u5b9f\u52d9\u76ee\u7dda\u3067\u8e0f\u307f\u8fbc\u3093\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002\u6700\u5f8c\u306b\u306f\u3001<strong>Claude Code\u3092\u4f7f\u3063\u305f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u751f\u6210\u306e\u52b9\u7387\u5316<\/strong>\u306b\u3064\u3044\u3066\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">random.choice()\u3084string\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u300c\u30e9\u30f3\u30c0\u30e0\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f5c\u308b\u300d\u3068\u3044\u3046\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580\u30b5\u30a4\u30c8\u3067\u983b\u7e41\u306b\u898b\u304b\u3051\u307e\u3059\u3002\u305f\u3060\u3001\u5b9f\u52d9\u3067\u305d\u306e\u307e\u307e\u4f7f\u3046\u3068\u5371\u967a\u306a\u30b1\u30fc\u30b9\u304c\u3042\u308b\u3053\u3068\u306f\u3001\u610f\u5916\u3068\u77e5\u3089\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/div>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001random\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306f\u3082\u3061\u308d\u3093\u3001\u300c\u3069\u3053\u307e\u3067\u304crandom\u306e\u5b88\u5099\u7bc4\u56f2\u3067\u3001\u3069\u3053\u304b\u3089\u306f\u5225\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u4efb\u305b\u308b\u3079\u304d\u304b\u300d\u3068\u3044\u3046\u5b9f\u52d9\u7684\u306a\u7dda\u5f15\u304d\u304c\u5206\u304b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>random() \/ uniform() \/ randint()<\/strong>\u306e\u9055\u3044\u3068\u4f7f\u3044\u5206\u3051<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>choice() \/ choices() \/ sample()<\/strong>\u306e\u9055\u3044\uff08\u91cd\u8907\u3042\u308a\u30fb\u306a\u3057\u306e\u533a\u5225\uff09<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>shuffle()<\/strong>\u306e\u6ce8\u610f\u70b9\u3068\u3001<strong>seed()<\/strong>\u306b\u3088\u308b\u518d\u73fe\u6027\u306e\u78ba\u4fdd<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>\u30d1\u30b9\u30ef\u30fc\u30c9\u30fb\u30c8\u30fc\u30af\u30f3\u751f\u6210\u306brandom\u3092\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u7406\u7531<\/strong>\u3068secrets\u30e2\u30b8\u30e5\u30fc\u30eb<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u30e9\u30f3\u30c0\u30e0\u6587\u5b57\u5217\u751f\u6210\u306e\u5b9f\u8df5\u7684\u306a\u30b3\u30fc\u30c9\u4f8b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>Claude Code\u3092\u4f7f\u3063\u305f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u751f\u6210\u306e\u52b9\u7387\u5316<\/strong>\u3068GENAI\u793e\u5185\u306e\u6d3b\u7528\u5b9f\u4f8b<\/span><\/div>\n\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/aibpo\/makase\/blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=aibpo_makase\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u793e\u54e1AIKATA\uff08\u670830\u4e07\u5186\u3067\u696d\u52d9\u307e\u304b\u305b\u653e\u984c\uff09\u306e\u7121\u6599\u76f8\u8ac7 \u4e88\u7d04\u30da\u30fc\u30b8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_makase_20260904.jpg\" alt=\"AI\u793e\u54e1AIKATA\uff5c\u670830\u4e07\u5186\u306e\u5b9a\u984d\u3067\u5fa1\u793e\u306e\u696d\u52d9\u3092\u307e\u308b\u3054\u3068\u5dfb\u304d\u53d6\u308a\u307e\u3059\uff08\u7121\u6599\u76f8\u8ac760\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/koteihi-line\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=koteihi_shindan\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u516c\u5f0fLINE\u306e\u56fa\u5b9a\u8cbb\u524a\u6e1b\u8a3a\u65ad\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_koteihi_line.jpg\" alt=\"\u5fa1\u793e\u304c\u6e1b\u3089\u305b\u308b\u56fa\u5b9a\u8cbb\u306f\u6708\u3044\u304f\u3089\u304b\uff5c\u516c\u5f0fLINE\u3067\u8cea\u554f\u306b\u7b54\u3048\u308b\u3060\u3051\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-01\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">01<\/span>\n  <span class=\"section-label\" style=\"display:block;\">OVERVIEW<\/span>\n  <span class=\"section-title\" style=\"display:block;\">random\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u306f\u4f55\u304b<\/span>\n  <span class=\"section-desc\">\u7591\u4f3c\u4e71\u6570\u3092\u751f\u6210\u3059\u308b\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>random<\/code>\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001Python\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u542b\u307e\u308c\u308b\u3001<strong>\u7591\u4f3c\u4e71\u6570\uff08\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u304c\u8a08\u7b97\u306b\u3088\u3063\u3066\u4f5c\u308a\u51fa\u3059\u3001\u4e00\u898b\u30e9\u30f3\u30c0\u30e0\u306b\u898b\u3048\u308b\u6570\u5024\uff09<\/strong>\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002\u8ffd\u52a0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u4e0d\u8981\u3067\u3001<code>import random<\/code>\u3068\u66f8\u304f\u3060\u3051\u3067\u3059\u3050\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u7591\u4f3c\u4e71\u6570\uff08\u304e\u3058\u3089\u3093\u3059\u3046\uff09<\/strong>\uff1a\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u304c\u6570\u5f0f\uff08\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\uff09\u306b\u3088\u3063\u3066\u8a08\u7b97\u7684\u306b\u751f\u6210\u3059\u308b\u3001\u7d71\u8a08\u7684\u306b\u306f\u30e9\u30f3\u30c0\u30e0\u306b\u898b\u3048\u308b\u6570\u5024\u306e\u3053\u3068\u3002\u771f\u306e\u610f\u5473\u3067\u30e9\u30f3\u30c0\u30e0\uff08\u7269\u7406\u73fe\u8c61\u306a\u3069\u306b\u57fa\u3065\u304f\u771f\u6027\u4e71\u6570\uff09\u3067\u306f\u306a\u304f\u3001\u540c\u3058\u521d\u671f\u5024\uff08\u30b7\u30fc\u30c9\u5024\uff09\u304b\u3089\u8a08\u7b97\u3092\u59cb\u3081\u308c\u3070\u3001\u6bce\u56de\u307e\u3063\u305f\u304f\u540c\u3058\u6570\u5217\u3092\u518d\u73fe\u3067\u304d\u308b\u3068\u3044\u3046\u7279\u5fb4\u3092\u6301\u3064\u3002Python\u306erandom\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u300c\u30e1\u30eb\u30bb\u30f3\u30cc\u30fb\u30c4\u30a4\u30b9\u30bf\u300d\u3068\u3044\u3046\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u3002<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b2\u30fc\u30e0\u306e\u30b5\u30a4\u30b3\u30ed\u51e6\u7406\u3001\u62bd\u9078\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u751f\u6210\u3001\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3001random\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u7528\u9014\u306f\u591a\u5c90\u306b\u308f\u305f\u308a\u307e\u3059\u3002\u307e\u305a\u306f\u57fa\u672c\u3068\u306a\u308b3\u3064\u306e\u95a2\u6570\u304b\u3089\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/aibpo\/makase\/blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=aibpo_makase\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u793e\u54e1AIKATA\uff08\u670830\u4e07\u5186\u3067\u696d\u52d9\u307e\u304b\u305b\u653e\u984c\uff09\u306e\u7121\u6599\u76f8\u8ac7 \u4e88\u7d04\u30da\u30fc\u30b8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_makase_20260904.jpg\" alt=\"AI\u793e\u54e1AIKATA\uff5c\u670830\u4e07\u5186\u306e\u5b9a\u984d\u3067\u5fa1\u793e\u306e\u696d\u52d9\u3092\u307e\u308b\u3054\u3068\u5dfb\u304d\u53d6\u308a\u307e\u3059\uff08\u7121\u6599\u76f8\u8ac760\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/koteihi-line\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=koteihi_shindan\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u516c\u5f0fLINE\u306e\u56fa\u5b9a\u8cbb\u524a\u6e1b\u8a3a\u65ad\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_koteihi_line.jpg\" alt=\"\u5fa1\u793e\u304c\u6e1b\u3089\u305b\u308b\u56fa\u5b9a\u8cbb\u306f\u6708\u3044\u304f\u3089\u304b\uff5c\u516c\u5f0fLINE\u3067\u8cea\u554f\u306b\u7b54\u3048\u308b\u3060\u3051\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-02\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">02<\/span>\n  <span class=\"section-label\" style=\"display:block;\">BASIC FUNCTIONS<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u57fa\u672c\u306e\u4e71\u6570\u53d6\u5f97\uff1arandom\u30fbuniform\u30fbrandint<\/span>\n  <span class=\"section-desc\">3\u3064\u306e\u95a2\u6570\u306e\u9055\u3044\u3092\u6b63\u78ba\u306b\u7406\u89e3\u3059\u308b<\/span>\n<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">2-1. random.random()\uff1a0\u4ee5\u4e0a1\u672a\u6e80\u306e\u5c0f\u6570<\/h3>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:13.5px;line-height:1.7;margin:16px 0;\"><code>import random\n\nprint(random.random())\n# 0.7364258172645... \uff080.0\u4ee5\u4e0a1.0\u672a\u6e80\u306e\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\uff09<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>random.random()<\/code>\u306f\u5f15\u6570\u3092\u53d6\u3089\u305a\u3001<strong>0.0\u4ee5\u4e0a1.0\u672a\u6e80<\/strong>\u306e\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u3092\u8fd4\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u5f97\u3089\u308c\u308b\u5024\u3092\u5143\u306b\u3001\u4ed6\u306e\u591a\u304f\u306e\u4e71\u6570\u95a2\u6570\u304c\u5185\u90e8\u7684\u306b\u8a08\u7b97\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2-2. random.uniform(a, b)\uff1a\u6307\u5b9a\u7bc4\u56f2\u306e\u5c0f\u6570<\/h3>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:13.5px;line-height:1.7;margin:16px 0;\"><code>import random\n\nprint(random.uniform(1.0, 10.0))\n# 4.281839...\uff081.0\u4ee5\u4e0a10.0\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u306e\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\uff09<\/code><\/pre>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">uniform()\u306e\u7aef\u70b9(b)\u306e\u6271\u3044\u306b\u306f\u6ce8\u610f<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">random.uniform(a, b)\u306f\u300ca\u304b\u3089b\u306e\u7bc4\u56f2\u300d\u306e\u5024\u3092\u8fd4\u3057\u307e\u3059\u304c\u3001\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u3082\u300c\u6d6e\u52d5\u5c0f\u6570\u70b9\u306e\u4e38\u3081\u8aa4\u5dee\u306b\u3088\u308a\u3001\u7d42\u7aef\u5024b\u3061\u3087\u3046\u3069\u304c\u8fd4\u308b\u5834\u5408\u3068\u8fd4\u3089\u306a\u3044\u5834\u5408\u304c\u3042\u308b\u300d\u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u300cb\u306f\u7d76\u5bfe\u306b\u542b\u307e\u308c\u306a\u3044\u300d\u3068\u65ad\u5b9a\u305b\u305a\u3001\u7bc4\u56f2\u306e\u76ee\u5b89\u3068\u3057\u3066\u6349\u3048\u308b\u306e\u304c\u6b63\u78ba\u306a\u7406\u89e3\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2-3. random.randint(a, b)\uff1a\u6307\u5b9a\u7bc4\u56f2\u306e\u6574\u6570<\/h3>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:13.5px;line-height:1.7;margin:16px 0;\"><code>import random\n\nprint(random.randint(1, 6))\n# 1\u301c6\u306e\u3044\u305a\u308c\u304b\u306e\u6574\u6570\uff08\u30b5\u30a4\u30b3\u30ed\u3092\u60f3\u5b9a\u3057\u305f\u4f8b\uff09<\/code><\/pre>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">randint()\u306f\u4e21\u7aef\u304c\u542b\u307e\u308c\u308b\uff08inclusive\uff09<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">random.randint(a, b)\u306f<strong>a\u3068b\u306e\u4e21\u65b9\u3092\u542b\u3080<\/strong>\u7bc4\u56f2\u304b\u3089\u6574\u6570\u3092\u8fd4\u3057\u307e\u3059\u3002\u4f3c\u305f\u95a2\u6570\u306erandom.randrange(a, b)\u306f\u9006\u306b<strong>b\u3092\u542b\u307e\u306a\u3044<\/strong>\uff08range()\u3068\u540c\u3058\u4ed5\u69d8\uff09\u305f\u3081\u3001\u300c1\u301c10\u300d\u3092\u610f\u56f3\u3057\u3066randrange(1, 10)\u3068\u66f8\u304f\u30689\u307e\u3067\u3057\u304b\u51fa\u306a\u3044\u3001\u3068\u3044\u3046\u521d\u5fc3\u8005\u304c\u6df7\u540c\u3057\u3084\u3059\u3044\u9055\u3044\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<table>\n<thead><tr><th>\u95a2\u6570<\/th><th>\u623b\u308a\u5024\u306e\u578b<\/th><th>\u7bc4\u56f2\u306e\u6307\u5b9a\u65b9\u6cd5<\/th><th>\u7aef\u70b9\u306e\u6271\u3044<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>random.random()<\/td><td>\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570<\/td><td>\u56fa\u5b9a\uff080.0\u301c1.0\uff09<\/td><td>0.0\u4ee5\u4e0a1.0\u672a\u6e80<\/td><\/tr>\n<tr><td>random.uniform(a, b)<\/td><td>\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570<\/td><td>a\u301cb\u3092\u6307\u5b9a<\/td><td>\u307b\u307ca\u4ee5\u4e0ab\u4ee5\u4e0b\uff08\u4e38\u3081\u8aa4\u5dee\u306e\u5f71\u97ff\u3042\u308a\uff09<\/td><\/tr>\n<tr><td>random.randint(a, b)<\/td><td>\u6574\u6570<\/td><td>a\u301cb\u3092\u6307\u5b9a<\/td><td>a\u4ee5\u4e0ab<strong>\u4ee5\u4e0b<\/strong>\uff08\u4e21\u7aef\u542b\u3080\uff09<\/td><\/tr>\n<tr><td>random.randrange(a, b)<\/td><td>\u6574\u6570<\/td><td>a\u301cb\u3092\u6307\u5b9a<\/td><td>a\u4ee5\u4e0ab<strong>\u672a\u6e80<\/strong>\uff08range()\u3068\u540c\u3058\uff09<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">randint\u3068randrange\u306e\u7aef\u70b9\u306e\u9055\u3044\u306f\u3001\u5b9f\u969b\u306e\u30d0\u30b0\u3068\u3057\u3066\u8868\u9762\u5316\u3057\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u300c1\u301c10\u306e\u30e9\u30f3\u30c0\u30e0\u306a\u6574\u6570\u300d\u304c\u6b32\u3057\u3044\u3068\u304d\u306b\u3001\u3046\u3063\u304b\u308arandrange(1, 10)\u3068\u66f8\u3044\u306610\u304c\u51fa\u306a\u3044\u3053\u3068\u306b\u6c17\u3065\u304b\u306a\u3044\u3001\u3068\u3044\u3046\u306e\u306f\u3088\u304f\u3042\u308b\u8a71\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/aibpo\/makase\/blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=aibpo_makase\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u793e\u54e1AIKATA\uff08\u670830\u4e07\u5186\u3067\u696d\u52d9\u307e\u304b\u305b\u653e\u984c\uff09\u306e\u7121\u6599\u76f8\u8ac7 \u4e88\u7d04\u30da\u30fc\u30b8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_makase_20260904.jpg\" alt=\"AI\u793e\u54e1AIKATA\uff5c\u670830\u4e07\u5186\u306e\u5b9a\u984d\u3067\u5fa1\u793e\u306e\u696d\u52d9\u3092\u307e\u308b\u3054\u3068\u5dfb\u304d\u53d6\u308a\u307e\u3059\uff08\u7121\u6599\u76f8\u8ac760\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/koteihi-line\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=koteihi_shindan\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u516c\u5f0fLINE\u306e\u56fa\u5b9a\u8cbb\u524a\u6e1b\u8a3a\u65ad\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_koteihi_line.jpg\" alt=\"\u5fa1\u793e\u304c\u6e1b\u3089\u305b\u308b\u56fa\u5b9a\u8cbb\u306f\u6708\u3044\u304f\u3089\u304b\uff5c\u516c\u5f0fLINE\u3067\u8cea\u554f\u306b\u7b54\u3048\u308b\u3060\u3051\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-03\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">03<\/span>\n  <span class=\"section-label\" style=\"display:block;\">LIST OPERATIONS<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u30ea\u30b9\u30c8\u304b\u3089\u306e\u30e9\u30f3\u30c0\u30e0\u62bd\u51fa\uff1achoice\u30fbchoices\u30fbsample<\/span>\n  <span class=\"section-desc\">\u91cd\u8907\u3042\u308a\u30fb\u306a\u3057\u306e\u9055\u3044\u3092\u6b63\u3057\u304f\u4f7f\u3044\u5206\u3051\u308b<\/span>\n<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">3-1. random.choice()\uff1a1\u3064\u3060\u3051\u9078\u3076<\/h3>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:13.5px;line-height:1.7;margin:16px 0;\"><code>import random\n\nfruits = ['apple', 'banana', 'orange']\nprint(random.choice(fruits))\n# 'banana' \uff083\u3064\u306e\u4e2d\u304b\u3089\u30e9\u30f3\u30c0\u30e0\u306b1\u3064\uff09<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3-2. random.choices()\uff1a\u91cd\u8907\u3042\u308a\u3067\u8907\u6570\u9078\u3076<\/h3>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:13.5px;line-height:1.7;margin:16px 0;\"><code>import random\n\nfruits = ['apple', 'banana', 'orange']\nprint(random.choices(fruits, k=5))\n# ['banana', 'banana', 'apple', 'orange', 'banana']\n# \u203b \u540c\u3058\u8981\u7d20\u304c\u8907\u6570\u56de\u9078\u3070\u308c\u308b\u3053\u3068\u304c\u3042\u308b\uff08\u91cd\u8907\u3042\u308a\uff09\n\n# weights\u3067\u91cd\u307f\u4ed8\u3051\u3082\u3067\u304d\u308b\nprint(random.choices(fruits, weights=[10, 1, 1], k=5))\n# apple\u304c\u9078\u3070\u308c\u3084\u3059\u304f\u306a\u308b\uff08\u91cd\u307f\u304c\u5927\u304d\u3044\u307b\u3069\u5f53\u9078\u78ba\u7387\u304c\u4e0a\u304c\u308b\uff09<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3-3. random.sample()\uff1a\u91cd\u8907\u306a\u3057\u3067\u8907\u6570\u9078\u3076<\/h3>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:13.5px;line-height:1.7;margin:16px 0;\"><code>import random\n\nfruits = ['apple', 'banana', 'orange', 'grape', 'melon']\nprint(random.sample(fruits, k=3))\n# ['grape', 'apple', 'orange']\n# \u203b \u540c\u3058\u8981\u7d20\u306f\u4e8c\u5ea6\u9078\u3070\u308c\u306a\u3044\uff08\u91cd\u8907\u306a\u3057\uff09<\/code><\/pre>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u5fa9\u5143\u62bd\u51fa \/ \u975e\u5fa9\u5143\u62bd\u51fa<\/strong>\uff1a\u7d71\u8a08\u5b66\u306e\u7528\u8a9e\u3067\u3001\u4e00\u5ea6\u9078\u3093\u3060\u8981\u7d20\u3092\u300c\u5143\u306b\u623b\u3057\u3066\u304b\u3089\u300d\u6b21\u3092\u9078\u3076\u65b9\u5f0f\u3092\u5fa9\u5143\u62bd\u51fa\uff08\u91cd\u8907\u3042\u308a\uff09\u3001\u300c\u5143\u306b\u623b\u3055\u305a\u300d\u6b21\u3092\u9078\u3076\u65b9\u5f0f\u3092\u975e\u5fa9\u5143\u62bd\u51fa\uff08\u91cd\u8907\u306a\u3057\uff09\u3068\u547c\u3076\u3002random.choices()\u306f\u5fa9\u5143\u62bd\u51fa\u3001random.sample()\u306f\u975e\u5fa9\u5143\u62bd\u51fa\u306b\u3042\u305f\u308b\u3002\u304f\u3058\u5f15\u304d\u3067\u300c\u5f15\u3044\u305f\u304f\u3058\u3092\u623b\u3059\u304b\u623b\u3055\u306a\u3044\u304b\u300d\u306e\u9055\u3044\u3092\u30a4\u30e1\u30fc\u30b8\u3059\u308b\u3068\u5206\u304b\u308a\u3084\u3059\u3044\u3002<\/p>\n<\/div>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">choices()\u3068sample()\u3092\u6df7\u540c\u3059\u308b\u3068\u8d77\u304d\u308b\u30d0\u30b0<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u62bd\u9078\u4f1a\u3067\u300c\u5f53\u9078\u8005\u30923\u4eba\u9078\u3076\u300d\u51e6\u7406\u306brandom.choices()\u3092\u4f7f\u3063\u3066\u3057\u307e\u3046\u3068\u3001<strong>\u540c\u3058\u4eba\u304c\u8907\u6570\u56de\u5f53\u9078\u3059\u308b<\/strong>\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u91cd\u8907\u3092\u8a31\u3057\u305f\u304f\u306a\u3044\u7528\u9014\u3067\u306f\u5fc5\u305arandom.sample()\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u9006\u306b\u3001\u30b5\u30a4\u30b3\u30ed\u30925\u56de\u632f\u308b\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u3088\u3046\u306b\u300c\u540c\u3058\u76ee\u304c\u8907\u6570\u56de\u51fa\u3066\u3088\u3044\u300d\u5834\u9762\u3067\u306fchoices()\u304c\u9069\u5207\u3067\u3059\u3002<\/p>\n<\/div>\n\n\n\n<table>\n<thead><tr><th>\u95a2\u6570<\/th><th>\u91cd\u8907<\/th><th>\u4e3b\u306a\u7528\u9014<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>random.choice()<\/td><td>\uff081\u4ef6\u306e\u307f\u53d6\u5f97\uff09<\/td><td>1\u3064\u3060\u3051\u30e9\u30f3\u30c0\u30e0\u306b\u9078\u3073\u305f\u3044\u3068\u304d<\/td><\/tr>\n<tr><td>random.choices(seq, k=n)<\/td><td>\u3042\u308a\uff08\u5fa9\u5143\u62bd\u51fa\uff09<\/td><td>\u30b5\u30a4\u30b3\u30ed\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3001\u91cd\u307f\u4ed8\u304d\u62bd\u9078<\/td><\/tr>\n<tr><td>random.sample(seq, k=n)<\/td><td>\u306a\u3057\uff08\u975e\u5fa9\u5143\u62bd\u51fa\uff09<\/td><td>\u91cd\u8907\u306e\u306a\u3044\u5f53\u9078\u8005\u9078\u51fa\u3001\u629c\u304d\u53d6\u308a\u691c\u67fb\u306e\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<h3 class=\"wp-block-heading\">3-4. random.shuffle()\uff1a\u30ea\u30b9\u30c8\u306e\u4e2d\u8eab\u3092\u5165\u308c\u66ff\u3048\u308b<\/h3>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:13.5px;line-height:1.7;margin:16px 0;\"><code>import random\n\ncards = ['A', 'B', 'C', 'D', 'E']\nrandom.shuffle(cards)\nprint(cards)\n# ['C', 'A', 'E', 'B', 'D'] \uff08\u5143\u306e\u30ea\u30b9\u30c8\u304c\u76f4\u63a5\u4e26\u3073\u66ff\u3048\u3089\u308c\u308b\uff09<\/code><\/pre>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">shuffle()\u306f\u623b\u308a\u5024\u304cNone\u3001\u4ee3\u5165\u3059\u308b\u3068\u58ca\u308c\u308b<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">random.shuffle()\u306f<strong>\u30ea\u30b9\u30c8\u3092\u76f4\u63a5\u305d\u306e\u5834\u3067\u4e26\u3073\u66ff\u3048\u308b\uff08\u7834\u58ca\u7684\u51e6\u7406\uff09<\/strong>\u95a2\u6570\u3067\u3001\u623b\u308a\u5024\u306f\u5e38\u306bNone\u3067\u3059\u3002<code>cards = random.shuffle(cards)<\/code>\u306e\u3088\u3046\u306b\u4ee3\u5165\u3057\u3066\u3057\u307e\u3046\u3068\u3001cards\u306e\u4e2d\u8eab\u304cNone\u306b\u306a\u3063\u3066\u6d88\u3048\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u300c\u30b7\u30e3\u30c3\u30d5\u30eb\u3057\u305f\u65b0\u3057\u3044\u30ea\u30b9\u30c8\u304c\u6b32\u3057\u3044\u300d\u5834\u5408\u306f\u3001shuffle()\u3067\u306f\u306a\u304f\u5f8c\u8ff0\u306esample()\u3067\u5168\u4ef6\u6570\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:13.5px;line-height:1.7;margin:16px 0;\"><code>import random\n\ncards = ['A', 'B', 'C', 'D', 'E']\n\n# \u5143\u306e\u30ea\u30b9\u30c8\u3092\u5909\u3048\u305a\u306b\u3001\u30b7\u30e3\u30c3\u30d5\u30eb\u6e08\u307f\u306e\u65b0\u3057\u3044\u30ea\u30b9\u30c8\u3092\u5f97\u308b\u65b9\u6cd5\nshuffled = random.sample(cards, k=len(cards))\nprint(cards)     # ['A', 'B', 'C', 'D', 'E'] \uff08\u5143\u306e\u30ea\u30b9\u30c8\u306f\u5909\u308f\u3089\u306a\u3044\uff09\nprint(shuffled)  # ['D', 'A', 'C', 'E', 'B'] \uff08\u65b0\u3057\u3044\u30b7\u30e3\u30c3\u30d5\u30eb\u6e08\u307f\u30ea\u30b9\u30c8\uff09<\/code><\/pre>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">shuffle()\u306e\u300c\u623b\u308a\u5024\u304cNone\u300d\u306f\u3001\u521d\u5fc3\u8005\u3060\u3051\u3067\u306a\u304f\u7d4c\u9a13\u8005\u3067\u3082\u6c17\u3092\u629c\u304f\u3068\u3084\u3063\u3066\u3057\u307e\u3046\u30df\u30b9\u3067\u3059\u3002\u300c\u305d\u306e\u5834\u3067\u66f8\u304d\u63db\u3048\u308b\u7cfb\u306e\u95a2\u6570\u306f\u623b\u308a\u5024\u3092\u6301\u305f\u306a\u3044\u3053\u3068\u304c\u591a\u3044\u300d\u3068\u3044\u3046\u611f\u899a\u3092\u8eab\u306b\u3064\u3051\u3066\u304a\u304f\u3068\u3001\u4ed6\u306e\u95a2\u6570\u3067\u3082\u4f3c\u305f\u4e8b\u6545\u3092\u9632\u3052\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/aibpo\/makase\/blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=aibpo_makase\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u793e\u54e1AIKATA\uff08\u670830\u4e07\u5186\u3067\u696d\u52d9\u307e\u304b\u305b\u653e\u984c\uff09\u306e\u7121\u6599\u76f8\u8ac7 \u4e88\u7d04\u30da\u30fc\u30b8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_makase_20260904.jpg\" alt=\"AI\u793e\u54e1AIKATA\uff5c\u670830\u4e07\u5186\u306e\u5b9a\u984d\u3067\u5fa1\u793e\u306e\u696d\u52d9\u3092\u307e\u308b\u3054\u3068\u5dfb\u304d\u53d6\u308a\u307e\u3059\uff08\u7121\u6599\u76f8\u8ac760\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/koteihi-line\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=koteihi_shindan\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u516c\u5f0fLINE\u306e\u56fa\u5b9a\u8cbb\u524a\u6e1b\u8a3a\u65ad\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_koteihi_line.jpg\" alt=\"\u5fa1\u793e\u304c\u6e1b\u3089\u305b\u308b\u56fa\u5b9a\u8cbb\u306f\u6708\u3044\u304f\u3089\u304b\uff5c\u516c\u5f0fLINE\u3067\u8cea\u554f\u306b\u7b54\u3048\u308b\u3060\u3051\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-04\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">04<\/span>\n  <span class=\"section-label\" style=\"display:block;\">REPRODUCIBILITY<\/span>\n  <span class=\"section-title\" style=\"display:block;\">seed()\u3067\u4e71\u6570\u3092\u56fa\u5b9a\u30fb\u518d\u73fe\u3059\u308b<\/span>\n  <span class=\"section-desc\">\u30c6\u30b9\u30c8\u3084\u30c7\u30d0\u30c3\u30b0\u3067\u300c\u540c\u3058\u4e71\u6570\u300d\u3092\u518d\u73fe\u3059\u308b\u65b9\u6cd5<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">random\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u751f\u6210\u3059\u308b\u5024\u306f\u300c\u7591\u4f3c\u300d\u4e71\u6570\u3067\u3042\u308b\u305f\u3081\u3001<strong>\u958b\u59cb\u70b9\uff08\u30b7\u30fc\u30c9\u5024\uff09\u3092\u56fa\u5b9a\u3059\u308c\u3070\u3001\u4f55\u5ea6\u5b9f\u884c\u3057\u3066\u3082\u307e\u3063\u305f\u304f\u540c\u3058\u7d50\u679c\u3092\u518d\u73fe\u3067\u304d\u307e\u3059<\/strong>\u3002\u3053\u306e\u6027\u8cea\u306f\u3001\u30c6\u30b9\u30c8\u3084\u30c7\u30d0\u30c3\u30b0\u306e\u5834\u9762\u3067\u975e\u5e38\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:13.5px;line-height:1.7;margin:16px 0;\"><code>import random\n\nrandom.seed(42)\nprint(random.randint(1, 100))  # 82\nprint(random.randint(1, 100))  # 15\n\n# \u540c\u3058seed(42)\u304b\u3089\u3084\u308a\u76f4\u3059\u3068\u3001\u307e\u3063\u305f\u304f\u540c\u3058\u9806\u756a\u3067\u540c\u3058\u5024\u304c\u51fa\u308b\nrandom.seed(42)\nprint(random.randint(1, 100))  # 82 \uff081\u56de\u76ee\u3068\u540c\u3058\uff09\nprint(random.randint(1, 100))  # 15 \uff082\u56de\u76ee\u3068\u540c\u3058\uff09<\/code><\/pre>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u30b7\u30fc\u30c9\u5024\uff08seed\uff09<\/strong>\uff1a\u7591\u4f3c\u4e71\u6570\u306e\u8a08\u7b97\u3092\u958b\u59cb\u3059\u308b\u969b\u306e\u300c\u521d\u671f\u5024\u300d\u306e\u3053\u3068\u3002\u540c\u3058\u30b7\u30fc\u30c9\u5024\u3092\u6307\u5b9a\u3059\u308c\u3070\u3001\u751f\u6210\u3055\u308c\u308b\u4e71\u6570\u306e\u9806\u756a\u306f\u6bce\u56de\u307e\u3063\u305f\u304f\u540c\u3058\u306b\u306a\u308b\u3002\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3067\u300c\u30e9\u30f3\u30c0\u30e0\u306a\u5165\u529b\u3092\u4f7f\u3046\u304c\u3001\u5b9f\u884c\u3059\u308b\u305f\u3073\u306b\u7d50\u679c\u304c\u5909\u308f\u308b\u3068\u518d\u73fe\u6027\u304c\u306a\u304f\u56f0\u308b\u300d\u3068\u3044\u3046\u5834\u9762\u3067\u3001seed()\u3092\u4f7f\u3063\u3066\u4e71\u6570\u3092\u56fa\u5b9a\u3059\u308b\u306e\u304c\u5b9a\u77f3\u3002<\/p>\n<\/div>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3067seed()\u3092\u4f7f\u3046\u5b9f\u52d9\u7684\u306a\u7406\u7531<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u300c\u30e9\u30f3\u30c0\u30e0\u306a\u8981\u7d20\u3092\u542b\u3080\u51e6\u7406\u300d\u3092\u30c6\u30b9\u30c8\u3059\u308b\u5834\u5408\u3001\u5b9f\u884c\u306e\u305f\u3073\u306b\u7d50\u679c\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u3068\u3001\u30d0\u30b0\u306e\u518d\u73fe\u3084\u4fee\u6b63\u78ba\u8a8d\u304c\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u3002\u30c6\u30b9\u30c8\u306e\u5192\u982d\u3067<code>random.seed(\u56fa\u5b9a\u5024)<\/code>\u3092\u547c\u3093\u3067\u304a\u304f\u3053\u3068\u3067\u3001\u4e71\u6570\u304c\u7d61\u3080\u51e6\u7406\u3067\u3082\u6c7a\u307e\u3063\u305f\u7d50\u679c\u3092\u671f\u5f85\u3059\u308b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u304c\u66f8\u3051\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">\u672c\u756a\u306e\u30e9\u30f3\u30c0\u30e0\u51e6\u7406\u306bseed\u56fa\u5b9a\u3092\u6b8b\u3055\u306a\u3044<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u30c7\u30d0\u30c3\u30b0\u7528\u306bseed()\u3092\u8a2d\u5b9a\u3057\u305f\u307e\u307e\u672c\u756a\u30b3\u30fc\u30c9\u306b\u6b8b\u3057\u3066\u3057\u307e\u3046\u3068\u3001<strong>\u5e38\u306b\u540c\u3058\u300c\u30e9\u30f3\u30c0\u30e0\u306a\u300d\u7d50\u679c\u3057\u304b\u51fa\u306a\u304f\u306a\u308b<\/strong>\u3068\u3044\u3046\u4e0d\u5177\u5408\u306b\u306a\u308a\u307e\u3059\u3002\u62bd\u9078\u3084\u30b2\u30fc\u30e0\u306a\u3069\u3001\u672c\u6765\u6bce\u56de\u5909\u308f\u3063\u3066\u307b\u3057\u3044\u51e6\u7406\u3067\u306f\u3001\u30c7\u30d0\u30c3\u30b0\u5f8c\u306b\u5fc5\u305aseed()\u306e\u547c\u3073\u51fa\u3057\u3092\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4-1. \u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u6d3b\u7528\u4f8b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">seed()\u306b\u3088\u308b\u518d\u73fe\u6027\u306f\u3001<strong>\u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3<\/strong>\uff08\u4e71\u6570\u3092\u4f7f\u3063\u3066\u8a66\u884c\u3092\u5927\u91cf\u306b\u7e70\u308a\u8fd4\u3057\u3001\u7d71\u8a08\u7684\u306a\u50be\u5411\u3092\u63a8\u5b9a\u3059\u308b\u624b\u6cd5\uff09\u3067\u3082\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u3042\u308b\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u306e\u5f53\u9078\u78ba\u7387\u3092\u8a66\u7b97\u3059\u308b\u5834\u5408\u3092\u8003\u3048\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:13.5px;line-height:1.7;margin:16px 0;\"><code>import random\n\nrandom.seed(1)\n\ntrials = 10000\nwin_count = 0\n\nfor _ in range(trials):\n    if random.random() &lt; 0.05:  # \u5f53\u9078\u78ba\u73875%\u3068\u4eee\u5b9a\n        win_count += 1\n\nprint(f'{trials}\u56de\u8a66\u884c\u3057\u3066{win_count}\u56de\u5f53\u9078\uff08\u5b9f\u6e2c\u78ba\u7387: {win_count \/ trials:.2%}\uff09')\n# 10000\u56de\u8a66\u884c\u3057\u3066537\u56de\u5f53\u9078\uff08\u5b9f\u6e2c\u78ba\u7387: 5.37%\uff09<\/code><\/pre>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3<\/strong>\uff1a\u4e71\u6570\u3092\u4f7f\u3063\u3066\u5927\u91cf\u306e\u8a66\u884c\u3092\u7e70\u308a\u8fd4\u3057\u3001\u305d\u306e\u7d50\u679c\u306e\u7d71\u8a08\u7684\u306a\u50be\u5411\u304b\u3089\u3001\u7406\u8ad6\u7684\u306b\u89e3\u304f\u306e\u304c\u96e3\u3057\u3044\u554f\u984c\u306e\u8fd1\u4f3c\u89e3\u3092\u6c42\u3081\u308b\u624b\u6cd5\u3002\u91d1\u878d\u306e\u30ea\u30b9\u30af\u8a08\u7b97\u3001\u5728\u5eab\u6226\u7565\u306e\u691c\u8a3c\u3001\u30b2\u30fc\u30e0\u30d0\u30e9\u30f3\u30b9\u306e\u8abf\u6574\u306a\u3069\u5e45\u5e83\u3044\u5206\u91ce\u3067\u4f7f\u308f\u308c\u308b\u3002random.seed()\u3067\u8a66\u884c\u306e\u518d\u73fe\u6027\u3092\u78ba\u4fdd\u3057\u3066\u304a\u304f\u3068\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5909\u3048\u305f\u3068\u304d\u306e\u52b9\u679c\u306e\u6bd4\u8f03\u304c\u3057\u3084\u3059\u304f\u306a\u308b\u3002<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3088\u3046\u306b\u3001<strong>\u300c\u540c\u3058\u6761\u4ef6\u3067\u4f55\u5ea6\u3082\u8a66\u884c\u3057\u305f\u5834\u5408\u306e\u50be\u5411\u300d<\/strong>\u3092\u8abf\u3079\u305f\u3044\u696d\u52d9\u30b7\u30fc\u30f3\u3067\u306f\u3001seed()\u3067\u518d\u73fe\u6027\u3092\u78ba\u4fdd\u3057\u3064\u3064\u3001random\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5404\u95a2\u6570\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u8a66\u7b97\u3059\u308b\u30a2\u30d7\u30ed\u30fc\u30c1\u304c\u5b9f\u52d9\u3067\u3082\u6d3b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3068\u805e\u304f\u3068\u96e3\u3057\u305d\u3046\u306b\u611f\u3058\u307e\u3059\u304c\u3001\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u300c\u4e71\u6570\u3092\u4f7f\u3063\u305f\u8a66\u884c\u3092\u3072\u305f\u3059\u3089\u7e70\u308a\u8fd4\u3057\u3066\u5e73\u5747\u3092\u898b\u308b\u300d\u3060\u3051\u3067\u3059\u3002random\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u57fa\u672c\u3055\u3048\u62bc\u3055\u3048\u3066\u3044\u308c\u3070\u3001\u5341\u5206\u306b\u81ea\u5206\u306e\u624b\u3067\u7d44\u3081\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/aibpo\/makase\/blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=aibpo_makase\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u793e\u54e1AIKATA\uff08\u670830\u4e07\u5186\u3067\u696d\u52d9\u307e\u304b\u305b\u653e\u984c\uff09\u306e\u7121\u6599\u76f8\u8ac7 \u4e88\u7d04\u30da\u30fc\u30b8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_makase_20260904.jpg\" alt=\"AI\u793e\u54e1AIKATA\uff5c\u670830\u4e07\u5186\u306e\u5b9a\u984d\u3067\u5fa1\u793e\u306e\u696d\u52d9\u3092\u307e\u308b\u3054\u3068\u5dfb\u304d\u53d6\u308a\u307e\u3059\uff08\u7121\u6599\u76f8\u8ac760\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/koteihi-line\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=koteihi_shindan\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u516c\u5f0fLINE\u306e\u56fa\u5b9a\u8cbb\u524a\u6e1b\u8a3a\u65ad\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_koteihi_line.jpg\" alt=\"\u5fa1\u793e\u304c\u6e1b\u3089\u305b\u308b\u56fa\u5b9a\u8cbb\u306f\u6708\u3044\u304f\u3089\u304b\uff5c\u516c\u5f0fLINE\u3067\u8cea\u554f\u306b\u7b54\u3048\u308b\u3060\u3051\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-05\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">05<\/span>\n  <span class=\"section-label\" style=\"display:block;\">SECURITY WARNING<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u3010\u91cd\u8981\u3011\u30d1\u30b9\u30ef\u30fc\u30c9\u751f\u6210\u306brandom\u3092\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u7406\u7531<\/span>\n  <span class=\"section-desc\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7528\u9014\u306b\u306fsecrets\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3046<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580\u8a18\u4e8b\u3067\u306f\u3001<code>random.choice()<\/code>\u3068\u6587\u5b57\u5217\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u300c\u30e9\u30f3\u30c0\u30e0\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u300d\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u304c\u3088\u304f\u7d39\u4ecb\u3055\u308c\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u306e\u65b9\u6cd5\u3092<strong>\u5b9f\u969b\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3084API\u30c8\u30fc\u30af\u30f3\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u7528\u306eURL\u306a\u3069\u306b\u4f7f\u3046\u306e\u306f\u5371\u967a<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5-1. random\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u300c\u4e88\u6e2c\u53ef\u80fd\u300d\u3067\u3042\u308b\u7406\u7531<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Python\u306erandom\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001<strong>\u30e1\u30eb\u30bb\u30f3\u30cc\u30fb\u30c4\u30a4\u30b9\u30bf<\/strong>\u3068\u3044\u3046\u9ad8\u901f\u306a\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u7591\u4f3c\u4e71\u6570\u3092\u751f\u6210\u3057\u3066\u3044\u307e\u3059\u3002\u7d71\u8a08\u7684\u306a\u5747\u4e00\u6027\u306b\u306f\u512a\u308c\u3066\u3044\u307e\u3059\u304c\u3001<strong>\u6697\u53f7\u5b66\u7684\u306b\u306f\u5b89\u5168\u3067\u306f\u3042\u308a\u307e\u305b\u3093<\/strong>\u3002\u5341\u5206\u306a\u6570\u306e\u51fa\u529b\u3092\u89b3\u6e2c\u3055\u308c\u308b\u3068\u3001\u5185\u90e8\u72b6\u614b\u3092\u63a8\u6e2c\u3055\u308c\u3001\u4ee5\u964d\u306b\u751f\u6210\u3055\u308c\u308b\u5024\u3092\u4e88\u6e2c\u3055\u308c\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u304c\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>\u30e1\u30eb\u30bb\u30f3\u30cc\u30fb\u30c4\u30a4\u30b9\u30bf\uff08Mersenne Twister\uff09<\/strong>\uff1aPython\u306erandom\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u63a1\u7528\u3057\u3066\u3044\u308b\u7591\u4f3c\u4e71\u6570\u751f\u6210\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3002\u5468\u671f\u304c\u975e\u5e38\u306b\u9577\u304f\u3001\u7d71\u8a08\u7684\u306a\u54c1\u8cea\u306b\u3082\u512a\u308c\u3066\u3044\u308b\u305f\u3081\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3084\u30b2\u30fc\u30e0\u306e\u7528\u9014\u3067\u306f\u5e83\u304f\u4f7f\u308f\u308c\u3066\u3044\u308b\u3002\u305f\u3060\u3057\u3001\u751f\u6210\u3055\u308c\u308b\u6570\u5217\u306b\u306f\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u7531\u6765\u306e\u898f\u5247\u6027\u304c\u3042\u308a\u3001\u5341\u5206\u306a\u6570\u306e\u51fa\u529b\u304b\u3089\u5185\u90e8\u72b6\u614b\u3092\u5fa9\u5143\u3067\u304d\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u6697\u53f7\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7528\u9014\u306b\u306f\u9069\u3055\u306a\u3044\u3068\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5-2. \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7528\u9014\u306b\u306fsecrets\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3046<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d1\u30b9\u30ef\u30fc\u30c9\u3001\u30c8\u30fc\u30af\u30f3\u3001\u30bb\u30c3\u30b7\u30e7\u30f3ID\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u7528\u306eURL\u306a\u3069\u3001<strong>\u300c\u4ed6\u4eba\u306b\u4e88\u6e2c\u3055\u308c\u3066\u306f\u56f0\u308b\u300d\u5024\u3092\u751f\u6210\u3059\u308b\u5834\u5408<\/strong>\u306f\u3001Python\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306e<code>secrets<\/code>\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3044\u307e\u3059\u3002secrets\u30e2\u30b8\u30e5\u30fc\u30eb\u306fOS\u304c\u63d0\u4f9b\u3059\u308b<strong>\u6697\u53f7\u5b66\u7684\u306b\u5b89\u5168\u306a\u4e71\u6570\u6e90<\/strong>\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001\u3053\u306e\u76ee\u7684\u306e\u305f\u3081\u306b\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u5074\u3067\u3082\u660e\u78ba\u306b\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:13.5px;line-height:1.7;margin:16px 0;\"><code>import secrets\nimport string\n\n# \u5b89\u5168\u306a\u30e9\u30f3\u30c0\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u4f8b\nalphabet = string.ascii_letters + string.digits\npassword = ''.join(secrets.choice(alphabet) for _ in range(12))\nprint(password)\n# \u4f8b: 'aB3xQ9mK7pLz'\n\n# \u5b89\u5168\u306a\u30c8\u30fc\u30af\u30f3\u3092\u751f\u6210\u3059\u308b\uff08URL\u30bb\u30fc\u30d5\u306a\u6587\u5b57\u5217\uff09\ntoken = secrets.token_urlsafe(32)\nprint(token)<\/code><\/pre>\n\n\n\n<table>\n<thead><tr><th>\u7528\u9014<\/th><th>\u4f7f\u3046\u3079\u304d\u30e2\u30b8\u30e5\u30fc\u30eb<\/th><th>\u7406\u7531<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u30b2\u30fc\u30e0\u306e\u30b5\u30a4\u30b3\u30ed\u30fb\u304f\u3058\u5f15\u304d<\/td><td>random<\/td><td>\u4e88\u6e2c\u3055\u308c\u3066\u3082\u5b9f\u5bb3\u304c\u306a\u3044\u3001\u901f\u5ea6\u3068\u624b\u8efd\u3055\u3092\u512a\u5148\u3057\u3066\u3088\u3044<\/td><\/tr>\n<tr><td>\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u30fb\u7d71\u8a08\u51e6\u7406<\/td><td>random<\/td><td>\u518d\u73fe\u6027\uff08seed\u56fa\u5b9a\uff09\u304c\u5fc5\u8981\u306a\u3053\u3068\u3082\u591a\u304f\u3001random\u304c\u9069\u3057\u3066\u3044\u308b<\/td><\/tr>\n<tr><td>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u751f\u6210<\/td><td>random<\/td><td>\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u306a\u306e\u3067\u3001\u4e88\u6e2c\u53ef\u80fd\u6027\u306f\u554f\u984c\u306b\u306a\u3089\u306a\u3044<\/td><\/tr>\n<tr><td>\u30d1\u30b9\u30ef\u30fc\u30c9\u30fb\u30c8\u30fc\u30af\u30f3\u306e\u751f\u6210<\/td><td>secrets<\/td><td>\u4e88\u6e2c\u3055\u308c\u308b\u3068\u4e0d\u6b63\u30a2\u30af\u30bb\u30b9\u306a\u3069\u5b9f\u5bb3\u306b\u3064\u306a\u304c\u308b\u305f\u3081<\/td><\/tr>\n<tr><td>\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u7528URL<\/td><td>secrets<\/td><td>\u7b2c\u4e09\u8005\u306b\u63a8\u6e2c\u3055\u308c\u308b\u3068\u672c\u4eba\u4ee5\u5916\u304c\u30ea\u30bb\u30c3\u30c8\u3067\u304d\u3066\u3057\u307e\u3046\u305f\u3081<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">\u300c\u52d5\u3044\u3066\u3044\u308b\u304b\u3089\u5b89\u5168\u300d\u3067\u306f\u306a\u3044<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">random.choice()\u3067\u751f\u6210\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3082\u3001\u898b\u305f\u76ee\u4e0a\u306f\u30e9\u30f3\u30c0\u30e0\u306b\u898b\u3048\u3001\u6a5f\u80fd\u3068\u3057\u3066\u306f\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u300c\u4e88\u6e2c\u53ef\u80fd\u304b\u3069\u3046\u304b\u300d\u3068\u3044\u3046\u5b89\u5168\u6027\u306e\u89b3\u70b9\u306f\u3001\u52d5\u4f5c\u78ba\u8a8d\u3060\u3051\u3067\u306f\u691c\u51fa\u3067\u304d\u307e\u305b\u3093\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u30fb\u30c8\u30fc\u30af\u30f3\u751f\u6210\u306e\u30b3\u30fc\u30c9\u3092\u898b\u304b\u3051\u305f\u3089\u3001\u4f7f\u308f\u308c\u3066\u3044\u308b\u306e\u304crandom\u304bsecrets\u304b\u3092\u5fc5\u305a\u78ba\u8a8d\u3059\u308b\u7fd2\u6163\u3092\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u3053\u308c\u306f\u5f0a\u793e\u304c\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u3067\u6307\u6458\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u300c\u52d5\u3044\u3066\u3044\u308b\u304b\u3089\u300d\u3068\u3044\u3046\u7406\u7531\u3060\u3051\u3067random\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u751f\u6210\u30b3\u30fc\u30c9\u304c\u305d\u306e\u307e\u307e\u672c\u756a\u306b\u6b8b\u3063\u3066\u3057\u307e\u3046\u30b1\u30fc\u30b9\u306f\u3001\u6c7a\u3057\u3066\u73cd\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/aibpo\/makase\/blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=aibpo_makase\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u793e\u54e1AIKATA\uff08\u670830\u4e07\u5186\u3067\u696d\u52d9\u307e\u304b\u305b\u653e\u984c\uff09\u306e\u7121\u6599\u76f8\u8ac7 \u4e88\u7d04\u30da\u30fc\u30b8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_makase_20260904.jpg\" alt=\"AI\u793e\u54e1AIKATA\uff5c\u670830\u4e07\u5186\u306e\u5b9a\u984d\u3067\u5fa1\u793e\u306e\u696d\u52d9\u3092\u307e\u308b\u3054\u3068\u5dfb\u304d\u53d6\u308a\u307e\u3059\uff08\u7121\u6599\u76f8\u8ac760\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/koteihi-line\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=koteihi_shindan\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u516c\u5f0fLINE\u306e\u56fa\u5b9a\u8cbb\u524a\u6e1b\u8a3a\u65ad\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_koteihi_line.jpg\" alt=\"\u5fa1\u793e\u304c\u6e1b\u3089\u305b\u308b\u56fa\u5b9a\u8cbb\u306f\u6708\u3044\u304f\u3089\u304b\uff5c\u516c\u5f0fLINE\u3067\u8cea\u554f\u306b\u7b54\u3048\u308b\u3060\u3051\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-06\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">06<\/span>\n  <span class=\"section-label\" style=\"display:block;\">PRACTICAL EXAMPLE<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u30e9\u30f3\u30c0\u30e0\u6587\u5b57\u5217\u751f\u6210\u306e\u5b9f\u8df5\u4f8b<\/span>\n  <span class=\"section-desc\">string\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u306e\u7d44\u307f\u5408\u308f\u305b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8981\u4ef6\u304c\u7d61\u307e\u306a\u3044\u7528\u9014\uff08\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u30c0\u30df\u30fcID\u306a\u3069\uff09\u3067\u3042\u308c\u3070\u3001random\u30e2\u30b8\u30e5\u30fc\u30eb\u3068<code>string<\/code>\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u30e9\u30f3\u30c0\u30e0\u6587\u5b57\u5217\u751f\u6210\u306f\u4eca\u3067\u3082\u5b9f\u52d9\u3067\u3088\u304f\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre style=\"background:#1a1a1a;color:#e5e5e5;border-radius:8px;padding:18px 20px;overflow-x:auto;font-size:13.5px;line-height:1.7;margin:16px 0;\"><code>import random\nimport string\n\ndef generate_dummy_id(length=8):\n    chars = string.ascii_uppercase + string.digits\n    return ''.join(random.choices(chars, k=length))\n\nfor _ in range(3):\n    print(generate_dummy_id())\n# \u4f8b:\n# 'K3F9XQ2P'\n# 'A7B2ZZ81'\n# 'M0QW5T4C' <\/code><\/pre>\n\n\n\n<div style=\"background:#f8f9fa;border-left:4px solid #6b7280;border-radius:0 8px 8px 0;padding:16px 20px;margin:20px 0;\">\n  <p style=\"margin:0 0 4px;font-size:13px;font-weight:700;color:#6b7280;letter-spacing:1px;\">&#128218; \u7528\u8a9e\u89e3\u8aac<\/p>\n  <p style=\"margin:0;font-size:15px;line-height:1.7;\"><strong>string.ascii_uppercase \/ string.digits<\/strong>\uff1aPython\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306estring\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u63d0\u4f9b\u3059\u308b\u5b9a\u6570\u3002ascii_uppercase\u306f\u5927\u6587\u5b57\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c826\u6587\u5b57\uff08'ABCDEFGHIJKLMNOPQRSTUVWXYZ'\uff09\u3001digits\u306f\u6570\u5b5710\u6587\u5b57\uff08'0123456789'\uff09\u3092\u8868\u3059\u6587\u5b57\u5217\u3002\u30e9\u30f3\u30c0\u30e0\u306a\u8b58\u5225\u5b50\u3092\u7d44\u307f\u7acb\u3066\u308b\u969b\u306e\u5143\u3068\u306a\u308b\u6587\u5b57\u96c6\u5408\u3068\u3057\u3066\u983b\u7e41\u306b\u5229\u7528\u3055\u308c\u308b\u3002<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u306e\u3088\u3046\u306b<strong>\u300c\u91cd\u8907\u3057\u3066\u3082\u5b9f\u5bb3\u304c\u306a\u3044\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u95a2\u308f\u3089\u306a\u3044\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u300d<\/strong>\u3092\u4f5c\u308b\u5834\u5408\u306f\u3001random.choices()\u3067\u5341\u5206\u3067\u3059\u3002\u9006\u306b\u300c\u4ed6\u4eba\u306b\u63a8\u6e2c\u3055\u308c\u308b\u3068\u56f0\u308b\u300d\u6587\u8108\u304c\u5c11\u3057\u3067\u3082\u3042\u308c\u3070\u3001\u524d\u7ae0\u306esecrets\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u5207\u308a\u66ff\u3048\u308b\u3068\u3044\u3046\u5224\u65ad\u3092\u5fb9\u5e95\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u30b3\u30fc\u30c9\u3060\u3051\u3092\u898b\u308b\u3068\u3001random\u3092\u4f7f\u3063\u305f\u30e9\u30f3\u30c0\u30e0\u6587\u5b57\u5217\u751f\u6210\u3082secrets\u3092\u4f7f\u3063\u305f\u30c8\u30fc\u30af\u30f3\u751f\u6210\u3082\u3001\u898b\u305f\u76ee\u306f\u3088\u304f\u4f3c\u3066\u3044\u307e\u3059\u3002\u3060\u304b\u3089\u3053\u305d\u300c\u4f55\u306e\u305f\u3081\u306b\u751f\u6210\u3057\u3066\u3044\u308b\u306e\u304b\u300d\u3068\u3044\u3046\u76ee\u7684\u304b\u3089\u9006\u7b97\u3057\u3066\u3001\u4f7f\u3046\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u9078\u3076\u7fd2\u6163\u304c\u5927\u5207\u3067\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/aibpo\/makase\/blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=aibpo_makase\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u793e\u54e1AIKATA\uff08\u670830\u4e07\u5186\u3067\u696d\u52d9\u307e\u304b\u305b\u653e\u984c\uff09\u306e\u7121\u6599\u76f8\u8ac7 \u4e88\u7d04\u30da\u30fc\u30b8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_makase_20260904.jpg\" alt=\"AI\u793e\u54e1AIKATA\uff5c\u670830\u4e07\u5186\u306e\u5b9a\u984d\u3067\u5fa1\u793e\u306e\u696d\u52d9\u3092\u307e\u308b\u3054\u3068\u5dfb\u304d\u53d6\u308a\u307e\u3059\uff08\u7121\u6599\u76f8\u8ac760\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/koteihi-line\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=koteihi_shindan\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u516c\u5f0fLINE\u306e\u56fa\u5b9a\u8cbb\u524a\u6e1b\u8a3a\u65ad\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_koteihi_line.jpg\" alt=\"\u5fa1\u793e\u304c\u6e1b\u3089\u305b\u308b\u56fa\u5b9a\u8cbb\u306f\u6708\u3044\u304f\u3089\u304b\uff5c\u516c\u5f0fLINE\u3067\u8cea\u554f\u306b\u7b54\u3048\u308b\u3060\u3051\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-07\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">07<\/span>\n  <span class=\"section-label\" style=\"display:block;\">COMMON MISTAKES<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u3088\u304f\u3042\u308b\u9593\u9055\u3044\u30fb\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8<\/span>\n  <span class=\"section-desc\">\u5b9f\u88c5\u524d\u306b\u78ba\u8a8d\u3057\u3066\u304a\u304d\u305f\u3044\u30dd\u30a4\u30f3\u30c8<\/span>\n<\/h2>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>random.randint()\u3068random.randrange()\u306e\u7aef\u70b9\uff08b\u3092\u542b\u3080\u304b\u542b\u307e\u306a\u3044\u304b\uff09\u3092\u6df7\u540c\u3057\u3066\u3044\u306a\u3044\u304b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>random.choices()\uff08\u91cd\u8907\u3042\u308a\uff09\u3068random.sample()\uff08\u91cd\u8907\u306a\u3057\uff09\u3092\u76ee\u7684\u306b\u5408\u308f\u305b\u3066\u9078\u3079\u3066\u3044\u308b\u304b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>random.shuffle()\u306e\u623b\u308a\u5024\uff08None\uff09\u3092\u5909\u6570\u306b\u4ee3\u5165\u3057\u3066\u4e2d\u8eab\u3092\u6d88\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u306a\u3044\u304b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u30c7\u30d0\u30c3\u30b0\u7528\u306erandom.seed()\u3092\u672c\u756a\u30b3\u30fc\u30c9\u306b\u6b8b\u3057\u305f\u307e\u307e\u306b\u3057\u3066\u3044\u306a\u3044\u304b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u30d1\u30b9\u30ef\u30fc\u30c9\u30fb\u30c8\u30fc\u30af\u30f3\u306e\u751f\u6210\u306b\u3001secrets\u3067\u306f\u306a\u304frandom\u3092\u4f7f\u3063\u3066\u3044\u306a\u3044\u304b<\/span><\/div>\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u7279\u306b\u6700\u5f8c\u306e\u9805\u76ee\u306f\u3001\u30b3\u30fc\u30c9\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3059\u308b\u305f\u3081\u898b\u904e\u3054\u3055\u308c\u304c\u3061\u3067\u3059\u3002\u300c\u6a5f\u80fd\u30c6\u30b9\u30c8\u306f\u901a\u3063\u3066\u3044\u308b\u306e\u306b\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ec\u30d3\u30e5\u30fc\u3067\u6307\u6458\u3055\u308c\u308b\u300d\u5178\u578b\u7684\u306a\u30d1\u30bf\u30fc\u30f3\u306a\u306e\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u30fb\u30c8\u30fc\u30af\u30f3\u751f\u6210\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u30fb\u30ec\u30d3\u30e5\u30fc\u3059\u308b\u969b\u306f\u5fc5\u305a\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\"><strong>\u4e88\u6e2c\u3055\u308c\u3066\u3082<br>\u554f\u984c\u306a\u3044\u304b\uff1f<\/strong><br><span style=\"font-size:12px;\">\u30b2\u30fc\u30e0\u30fb\u7d71\u8a08\u30fb<br>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>Yes \u2192 random<\/strong><br><span style=\"font-size:12px;\">choice\/choices\/<br>sample\/shuffle<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>No \u2192 secrets<\/strong><br><span style=\"font-size:12px;\">\u30d1\u30b9\u30ef\u30fc\u30c9\u30fb<br>\u30c8\u30fc\u30af\u30f3\u751f\u6210<\/span><\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/aibpo\/makase\/blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=aibpo_makase\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u793e\u54e1AIKATA\uff08\u670830\u4e07\u5186\u3067\u696d\u52d9\u307e\u304b\u305b\u653e\u984c\uff09\u306e\u7121\u6599\u76f8\u8ac7 \u4e88\u7d04\u30da\u30fc\u30b8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_makase_20260904.jpg\" alt=\"AI\u793e\u54e1AIKATA\uff5c\u670830\u4e07\u5186\u306e\u5b9a\u984d\u3067\u5fa1\u793e\u306e\u696d\u52d9\u3092\u307e\u308b\u3054\u3068\u5dfb\u304d\u53d6\u308a\u307e\u3059\uff08\u7121\u6599\u76f8\u8ac760\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/koteihi-line\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=koteihi_shindan\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u516c\u5f0fLINE\u306e\u56fa\u5b9a\u8cbb\u524a\u6e1b\u8a3a\u65ad\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_koteihi_line.jpg\" alt=\"\u5fa1\u793e\u304c\u6e1b\u3089\u305b\u308b\u56fa\u5b9a\u8cbb\u306f\u6708\u3044\u304f\u3089\u304b\uff5c\u516c\u5f0fLINE\u3067\u8cea\u554f\u306b\u7b54\u3048\u308b\u3060\u3051\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-08\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">08<\/span>\n  <span class=\"section-label\" style=\"display:block;\">AI-ASSISTED DATA GENERATION<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u3010\u72ec\u81ea\u3011Claude Code\u3092\u4f7f\u3063\u305f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u751f\u6210\u30fb\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u52b9\u7387\u5316<\/span>\n  <span class=\"section-desc\">AI\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u306b\u4efb\u305b\u3089\u308c\u308b\u7bc4\u56f2\u3092\u898b\u6975\u3081\u308b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">random\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4ee3\u8868\u7684\u306a\u7528\u9014\u306e1\u3064\u304c<strong>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u751f\u6210<\/strong>\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u300c\u6c0f\u540d\u30fb\u4f4f\u6240\u30fb\u6ce8\u6587\u91d1\u984d\u30fb\u5728\u5eab\u6570\u304c\u305d\u308c\u305e\u308c\u73fe\u5b9f\u7684\u306a\u5206\u5e03\u306b\u306a\u3063\u3066\u3044\u308b\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092100\u4ef6\u4f5c\u308b\u300d\u3068\u3044\u3063\u305f\u8981\u4ef6\u306b\u306a\u308b\u3068\u3001\u624b\u4f5c\u696d\u3067\u30b3\u30fc\u30c9\u3092\u7d44\u3080\u306e\u306f\u610f\u5916\u3068\u624b\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u3067\u5f79\u7acb\u3064\u306e\u304c\u3001Claude Code\u306e\u3088\u3046\u306a<strong>AI\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8<\/strong>\u3067\u3059\u3002\u300c\u3053\u3046\u3044\u3046\u69cb\u9020\u30fb\u5206\u5e03\u306e\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u3001random\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u751f\u6210\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u300d\u3068\u4f9d\u983c\u3059\u308b\u3068\u3001\u8981\u4ef6\u306b\u5408\u308f\u305b\u305f\u30b3\u30fc\u30c9\u3092\u305d\u306e\u5834\u3067\u7d44\u307f\u7acb\u3066\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<table>\n<thead><tr><th>\u4f9d\u983c\u5185\u5bb9<\/th><th>AI\u3078\u306e\u6307\u793a\u4f8b<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u57fa\u672c\u7684\u306a\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u751f\u6210<\/td><td>\u300c\u6c0f\u540d\u30fb\u5e74\u9f62\u30fb\u8cfc\u5165\u91d1\u984d\u3092\u6301\u3064\u30c0\u30df\u30fc\u9867\u5ba2\u30c7\u30fc\u30bf\u3092100\u4ef6\u3001random\u3067\u751f\u6210\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u300d<\/td><\/tr>\n<tr><td>\u91cd\u307f\u4ed8\u304d\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3<\/td><td>\u300c\u767a\u751f\u78ba\u7387\u304c\u7570\u306a\u308b3\u7a2e\u985e\u306e\u30a4\u30d9\u30f3\u30c8\u30921000\u56de\u8a66\u884c\u3059\u308b\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u3001random.choices()\u306e\u91cd\u307f\u4ed8\u3051\u3067\u5b9f\u88c5\u3057\u3066\u300d<\/td><\/tr>\n<tr><td>\u518d\u73fe\u6027\u306e\u3042\u308b\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9<\/td><td>\u300c\u3053\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306b\u3001\u4e71\u6570\u306e\u7d50\u679c\u3092\u56fa\u5b9a\u3059\u308bseed()\u3092\u8ffd\u52a0\u3057\u3066\u300d<\/td><\/tr>\n<tr><td>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u89b3\u70b9\u306e\u30c1\u30a7\u30c3\u30af<\/td><td>\u300c\u3053\u306e\u30b3\u30fc\u30c9\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u751f\u6210\u306brandom\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3057\u3066\u300d<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<div class=\"g-flow-row\" style=\"margin:24px 0;\">\n  <div class=\"g-flow-item\"><strong>Step 1<\/strong><br><span style=\"font-size:12px;\">\u6b32\u3057\u3044\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e<br>\u6761\u4ef6\u3092AI\u306b\u4f1d\u3048\u308b<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>Step 2<\/strong><br><span style=\"font-size:12px;\">\u751f\u6210\u30b9\u30af\u30ea\u30d7\u30c8\u306e<br>\u305f\u305f\u304d\u53f0\u3092\u53d7\u3051\u53d6\u308b<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>Step 3<\/strong><br><span style=\"font-size:12px;\">\u5206\u5e03\u30fb\u4ef6\u6570\u3092<br>\u8abf\u6574\u3057\u3066\u5b9f\u884c<\/span><\/div>\n  <div class=\"g-flow-arrow\">&#8594;<\/div>\n  <div class=\"g-flow-item\"><strong>Step 4<\/strong><br><span style=\"font-size:12px;\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7528\u9014\u306f<br>secrets\u306b\u7f6e\u63db<\/span><\/div>\n<\/div>\n\n\n\n<div style=\"background:#f0fdf4;border:1px solid #22c55e;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:18px;\">&#128161;<\/span>\n    <strong style=\"color:#16a34a;font-size:15px;\">AI\u306b\u4efb\u305b\u305f\u5f8c\u3082\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u89b3\u70b9\u306e\u78ba\u8a8d\u306f\u4eba\u9593\u306e\u5f79\u76ee<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">AI\u304c\u63d0\u793a\u3059\u308b\u30b3\u30fc\u30c9\u3082\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u751f\u6210\u306e\u6587\u8108\u3067\u66f8\u304b\u308c\u3066\u3044\u308c\u3070\u5f53\u7136random\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3044\u307e\u3059\u3002\u305d\u306e\u30b3\u30fc\u30c9\u3092\u3046\u3063\u304b\u308a\u30d1\u30b9\u30ef\u30fc\u30c9\u751f\u6210\u306a\u3069\u5225\u306e\u7528\u9014\u306b\u8ee2\u7528\u3057\u306a\u3044\u3088\u3046\u3001\u6700\u7d42\u7684\u306a\u30c1\u30a7\u30c3\u30af\u306f\u4eba\u9593\u304c\u884c\u3046\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u751f\u6210\u306e\u3088\u3046\u306a\u300c\u5730\u5473\u3060\u304c\u6642\u9593\u304c\u304b\u304b\u308b\u300d\u4f5c\u696d\u3053\u305d\u3001AI\u306b\u4efb\u305b\u308b\u4fa1\u5024\u304c\u5927\u304d\u3044\u9818\u57df\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u8a18\u4e8b\u3067\u8aac\u660e\u3057\u305frandom\u3068secrets\u306e\u4f7f\u3044\u5206\u3051\u306e\u3088\u3046\u306a\u5b89\u5168\u6027\u306e\u5224\u65ad\u306f\u3001\u6700\u7d42\u7684\u306b\u306f\u4eba\u9593\u304c\u78ba\u8a8d\u3059\u308b\u610f\u8b58\u3092\u6301\u3063\u3066\u304a\u304f\u3079\u304d\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/aibpo\/makase\/blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=aibpo_makase\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u793e\u54e1AIKATA\uff08\u670830\u4e07\u5186\u3067\u696d\u52d9\u307e\u304b\u305b\u653e\u984c\uff09\u306e\u7121\u6599\u76f8\u8ac7 \u4e88\u7d04\u30da\u30fc\u30b8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_makase_20260904.jpg\" alt=\"AI\u793e\u54e1AIKATA\uff5c\u670830\u4e07\u5186\u306e\u5b9a\u984d\u3067\u5fa1\u793e\u306e\u696d\u52d9\u3092\u307e\u308b\u3054\u3068\u5dfb\u304d\u53d6\u308a\u307e\u3059\uff08\u7121\u6599\u76f8\u8ac760\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/koteihi-line\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=koteihi_shindan\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u516c\u5f0fLINE\u306e\u56fa\u5b9a\u8cbb\u524a\u6e1b\u8a3a\u65ad\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_koteihi_line.jpg\" alt=\"\u5fa1\u793e\u304c\u6e1b\u3089\u305b\u308b\u56fa\u5b9a\u8cbb\u306f\u6708\u3044\u304f\u3089\u304b\uff5c\u516c\u5f0fLINE\u3067\u8cea\u554f\u306b\u7b54\u3048\u308b\u3060\u3051\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-09\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">09<\/span>\n  <span class=\"section-label\" style=\"display:block;\">GENAI CASE STUDY<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u3010\u72ec\u81ea\u30c7\u30fc\u30bf\u3011GENAI\u793e\u5185\u3067\u306ePython\u6d3b\u7528\u5b9f\u4f8b<\/span>\n  <span class=\"section-desc\">Claude Max 20x\u30d7\u30e9\u30f3\u3067\u306e\u6d3b\u7528\u5b9f\u614b<\/span>\n<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f0a\u793e\uff08\u682a\u5f0f\u4f1a\u793eGENAI\uff09\u3067\u306f\u3001Claude Max 20x\u30d7\u30e9\u30f3\uff08\u6708\u984d$200\u30fb\u7d0430,000\u5186\uff09\u3092\u5951\u7d04\u3057\u3001\u55b6\u696d\u30fb\u5e83\u544a\u904b\u7528\u30fb\u8a18\u4e8b\u5236\u4f5c\u30fb\u7d4c\u7406\u30fb\u79d8\u66f8\u696d\u52d9\u307e\u3067\u3001\u793e\u5185\u306e\u3042\u3089\u3086\u308b\u696d\u52d9\u3067Python\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6d3b\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<table>\n<thead><tr><th>\u696d\u52d9\u9818\u57df<\/th><th>\u4e3b\u306a\u7528\u9014<\/th><th>random\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4f7f\u3044\u3069\u3053\u308d<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u5e83\u544a\u904b\u7528<\/td><td>A\/B\u30c6\u30b9\u30c8\u8a2d\u8a08\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3<\/td><td>random.choices()\u3067\u914d\u4fe1\u30d1\u30bf\u30fc\u30f3\u306e\u91cd\u307f\u4ed8\u3051\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3<\/td><\/tr>\n<tr><td>\u30d6\u30ed\u30b0\u8a18\u4e8b<\/td><td>\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u306e\u91cd\u8907\u56de\u907f\u30ed\u30b8\u30c3\u30af<\/td><td>random.sample()\u3067\u672a\u4f7f\u7528\u306e\u5019\u88dc\u304b\u3089\u9078\u629e<\/td><\/tr>\n<tr><td>\u958b\u767a\u30fb\u30c6\u30b9\u30c8<\/td><td>\u30c7\u30e2\u74b0\u5883\u7528\u306e\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u751f\u6210<\/td><td>random + string\u3067\u30c6\u30b9\u30c8\u7528\u306e\u8b58\u5225\u5b50\u3092\u5927\u91cf\u751f\u6210<\/td><\/tr>\n<\/tbody>\n<\/table>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65b9\u3067\u3001\u9867\u5ba2\u5411\u3051\u30b5\u30fc\u30d3\u30b9\u306e\u8a8d\u8a3c\u307e\u308f\u308a\uff08\u30d1\u30b9\u30ef\u30fc\u30c9\u518d\u8a2d\u5b9a\u7528\u306e\u30c8\u30fc\u30af\u30f3\u306a\u3069\uff09\u306f\u3001\u3053\u306e\u8a18\u4e8b\u3067\u8aac\u660e\u3057\u305f\u7406\u7531\u304b\u3089<strong>secrets\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u7d71\u4e00\u3059\u308b<\/strong>\u3088\u3046\u30eb\u30fc\u30eb\u5316\u3057\u3066\u3044\u307e\u3059\u3002\u300c\u3069\u3061\u3089\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3046\u304b\u300d\u3092\u6bce\u56de\u500b\u5225\u306b\u5224\u65ad\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u7528\u9014\u3054\u3068\u306b\u3042\u3089\u304b\u3058\u3081\u65b9\u91dd\u3092\u6c7a\u3081\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u30ec\u30d3\u30e5\u30fc\u306e\u624b\u9593\u3092\u6e1b\u3089\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#fef2f2;border:2px solid #dc2626;border-radius:8px;padding:20px 24px;margin:24px 0;\">\n  <div style=\"display:flex;align-items:center;gap:8px;margin-bottom:12px;\">\n    <span style=\"font-size:20px;\">&#9888;&#65039;<\/span>\n    <strong style=\"color:#dc2626;font-size:16px;\">\u6570\u5024\u306e\u6ce8\u610f\u66f8\u304d<\/strong>\n  <\/div>\n  <p style=\"margin:0;font-size:15px;line-height:1.8;color:#333;\">\u4e0a\u8a18\u306f\u5f0a\u793e\u3067\u306e\u6d3b\u7528\u4f8b\u3067\u3042\u308a\u3001\u696d\u7a2e\u30fb\u696d\u614b\u306b\u3088\u3063\u3066\u6700\u9069\u306a\u4f7f\u3044\u5206\u3051\u306f\u7570\u306a\u308a\u307e\u3059\u3002\u3042\u304f\u307e\u3067\u53c2\u8003\u60c5\u5831\u3068\u3057\u3066\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n\n\n\n<div class=\"balloon-wrap\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/ceo-sugasawa.jpg\" alt=\"\u4ee3\u8868\u83c5\u6fa4\">\n    <span class=\"balloon-name\">\u4ee3\u8868\u83c5\u6fa4<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u5f0a\u793e\u3067\u306f\u300cAI\u9b3c\u7ba1\u7406\u300d\u3068\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u3067\u3001\u3053\u3046\u3057\u305f\u696d\u52d9\u81ea\u52d5\u5316\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u8a2d\u8a08\u304b\u3089\u3001Claude Code\u3092\u4f7f\u3063\u305f\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u306e\u4ed5\u7d44\u307f\u4f5c\u308a\u307e\u3067\u652f\u63f4\u3057\u3066\u3044\u307e\u3059\u3002\u5730\u5473\u306a\u3088\u3046\u3067\u3044\u3066\u3001\u3053\u3046\u3057\u305f\u57fa\u790e\u306e\u4f7f\u3044\u5206\u3051\u304c\u5f8c\u3005\u306e\u30c8\u30e9\u30d6\u30eb\u9632\u6b62\u306b\u76f4\u7d50\u3059\u308b\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/div>\n<\/div>\n\n\n<div style=\"margin:48px 0 8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\"><a href=\"https:\/\/aikanri.genai-ai.co.jp\/aibpo\/makase\/blog\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=aibpo_makase\" target=\"_blank\" rel=\"noopener\" aria-label=\"AI\u793e\u54e1AIKATA\uff08\u670830\u4e07\u5186\u3067\u696d\u52d9\u307e\u304b\u305b\u653e\u984c\uff09\u306e\u7121\u6599\u76f8\u8ac7 \u4e88\u7d04\u30da\u30fc\u30b8\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_makase_20260904.jpg\" alt=\"AI\u793e\u54e1AIKATA\uff5c\u670830\u4e07\u5186\u306e\u5b9a\u984d\u3067\u5fa1\u793e\u306e\u696d\u52d9\u3092\u307e\u308b\u3054\u3068\u5dfb\u304d\u53d6\u308a\u307e\u3059\uff08\u7121\u6599\u76f8\u8ac760\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><a href=\"https:\/\/aikanri.genai-ai.co.jp\/koteihi-line\/?utm_source=blog&#038;utm_medium=h2banner&#038;utm_content=cc-python-random-guide&#038;blog_slug=cc-python-random-guide&#038;blog_title=%E3%80%902026%E5%B9%B49%E6%9C%88%E6%9C%80%E6%96%B0%E3%80%91Python%E3%81%AErandom%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E5%AE%8C%E5%85%A8%E8%A7%A3%E8%AA%AC%EF%BD%9Cchoice%E3%83%BBsample%E3%83%BBseed%E3%81%8B%E3%82%89%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%B3%A8%E6%84%8F%E7%82%B9%E3%81%BE%E3%81%A7&#038;blog_url=https%3A%2F%2Fgenai-ai.co.jp%2Fai-kanri%2Fblog%2Fcc-python-random-guide%2F&#038;utm_campaign=koteihi_shindan\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u516c\u5f0fLINE\u306e\u56fa\u5b9a\u8cbb\u524a\u6e1b\u8a3a\u65ad\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\u3078\" style=\"flex:1 1 280px;max-width:360px;text-decoration:none;\"><img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/09\/cta_blog_koteihi_line.jpg\" alt=\"\u5fa1\u793e\u304c\u6e1b\u3089\u305b\u308b\u56fa\u5b9a\u8cbb\u306f\u6708\u3044\u304f\u3089\u304b\uff5c\u516c\u5f0fLINE\u3067\u8cea\u554f\u306b\u7b54\u3048\u308b\u3060\u3051\uff08\u7121\u6599\u30fb\u7d041\u5206\uff09\" style=\"width:100%;height:auto;border-radius:8px;display:block;\"><\/a><\/div>\n\n\n<div id=\"sec-10\"><\/div>\n<h2 class=\"section-header-img\" style=\"margin:32px 0 24px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a 0%,#2a1015 100%);padding:32px 28px;color:#fff;position:relative;border:none;border-left:none;text-align:left;\">\n  <span class=\"section-number\" style=\"display:block;\">10<\/span>\n  <span class=\"section-label\" style=\"display:block;\">CONCLUSION<\/span>\n  <span class=\"section-title\" style=\"display:block;\">\u307e\u3068\u3081<\/span>\n  <span class=\"section-desc\">random\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u6b63\u3057\u304f\u4f7f\u3044\u5206\u3051\u308b<\/span>\n<\/h2>\n\n\n\n<div style=\"background:#fafafa;border-radius:8px;padding:16px 20px;margin:16px 0;border-left:4px solid #dc2626;\">\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>random.random() \/ uniform() \/ randint()<\/strong>\u3067\u57fa\u672c\u7684\u306a\u4e71\u6570\u3092\u53d6\u5f97\u3067\u304d\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>randint\u306f\u4e21\u7aef\u3092<strong>\u542b\u3080\uff08inclusive\uff09<\/strong>\u3001randrange\u306f\u7d42\u7aef\u3092<strong>\u542b\u307e\u306a\u3044<\/strong>\u3068\u3044\u3046\u9055\u3044\u306b\u6ce8\u610f<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>choices()\u306f\u91cd\u8907\u3042\u308a\u3001sample()\u306f\u91cd\u8907\u306a\u3057<\/strong>\u3067\u8907\u6570\u8981\u7d20\u3092\u9078\u3076<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>shuffle()\u306e\u623b\u308a\u5024\u306fNone<\/strong>\u3001\u4ee3\u5165\u3059\u308b\u3068\u4e2d\u8eab\u304c\u6d88\u3048\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>seed()<\/strong>\u3067\u4e71\u6570\u3092\u56fa\u5b9a\u3059\u308c\u3070\u3001\u30c6\u30b9\u30c8\u3084\u30c7\u30d0\u30c3\u30b0\u3067\u7d50\u679c\u3092\u518d\u73fe\u3067\u304d\u308b<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span>\u30d1\u30b9\u30ef\u30fc\u30c9\u30fb\u30c8\u30fc\u30af\u30f3\u306a\u3069<strong>\u4e88\u6e2c\u3055\u308c\u308b\u3068\u56f0\u308b\u5024\u306b\u306f\u3001random\u3067\u306f\u306a\u304fsecrets\u30e2\u30b8\u30e5\u30fc\u30eb<\/strong>\u3092\u4f7f\u3046<\/span><\/div>\n<div style=\"display:flex;align-items:flex-start;gap:8px;padding:6px 0;font-size:15px;line-height:1.6;\"><span style=\"color:#dc2626;font-size:16px;flex-shrink:0;margin-top:2px;\">&#10004;&#65039;<\/span><span><strong>Claude Code\u306a\u3069\u306eAI<\/strong>\u3092\u4f7f\u3046\u3068\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u751f\u6210\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u52b9\u7387\u7684\u306b\u7d44\u307f\u7acb\u3066\u3089\u308c\u308b<\/span><\/div>\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">random\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u624b\u8efd\u306b\u4f7f\u3048\u308b\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001\u300c\u91cd\u8907\u306e\u6709\u7121\u300d\u300c\u623b\u308a\u5024\u306e\u578b\u300d\u300c\u518d\u73fe\u6027\u300d\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u5b89\u5168\u6027\u300d\u3068\u3044\u3063\u305f\u6027\u8cea\u3092\u6b63\u3057\u304f\u7406\u89e3\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3067\u3001\u30b3\u30fc\u30c9\u306e\u54c1\u8cea\u306b\u5927\u304d\u306a\u5dee\u304c\u51fa\u307e\u3059\u3002\u7279\u306b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u95a2\u308f\u308b\u7528\u9014\u3067secrets\u30e2\u30b8\u30e5\u30fc\u30eb\u3078\u306e\u5207\u308a\u66ff\u3048\u3092\u610f\u8b58\u3067\u304d\u3066\u3044\u308b\u304b\u306f\u3001\u5b9f\u52d9\u306e\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u3067\u3082\u91cd\u8981\u306a\u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f0a\u793e\u3067\u306f\u3001\u3053\u3046\u3057\u305f\u57fa\u790e\u7684\u306a\u6280\u8853\u5224\u65ad\u3092\u542b\u3081\u3066\u3001Claude Code\u3092\u6d3b\u7528\u3057\u305f\u696d\u52d9\u81ea\u52d5\u5316\u30fb\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306e\u8a2d\u8a08\u304b\u3089\u4f34\u8d70\u652f\u63f4\u307e\u3067\u884c\u3063\u3066\u3044\u307e\u3059\u3002\u300c\u793e\u5185\u306e\u30b3\u30fc\u30c9\u54c1\u8cea\u3092\u5e95\u4e0a\u3052\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u65b9\u306f\u3001\u305c\u3072\u4e00\u5ea6\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u54c1\u8cea\u306e\u5e95\u4e0a\u3052\u30fbClaude Code\u5c0e\u5165\u3082\u3001AI\u9b3c\u7ba1\u7406\u304c\u4f34\u8d70\u3057\u307e\u3059<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">random\u3068secrets\u306e\u4f7f\u3044\u5206\u3051\u306e\u3088\u3046\u306a\u57fa\u790e\u5224\u65ad\u306e\u7a4d\u307f\u91cd\u306d\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u4fe1\u983c\u6027\u3092\u5de6\u53f3\u3057\u307e\u3059\u3002<br>AI\u9b3c\u7ba1\u7406\u3067\u306f\u3001Claude Code\u3092\u6d3b\u7528\u3057\u305f\u696d\u52d9\u81ea\u52d5\u5316\u306e\u8a2d\u8a08\u304b\u3089\u3001\u793e\u5185\u30a8\u30f3\u30b8\u30cb\u30a2\u4ee5\u5916\u306e\u30e1\u30f3\u30d0\u30fc\u3078\u306e\u5b9a\u7740\u652f\u63f4\u307e\u3067\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"balloon-wrap is-right\">\n  <div class=\"balloon-icon\">\n    <img decoding=\"async\" src=\"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-content\/uploads\/2026\/04\/yamazaki-avatar.png\" alt=\"AI\u9b3c\u7ba1\u7406\u5c71\u5d0e\">\n    <span class=\"balloon-name\">AI\u9b3c\u7ba1\u7406\u5c71\u5d0e<\/span>\n  <\/div>\n  <div class=\"balloon-body\">\u300c\u793e\u5185\u306e\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u4f53\u5236\u3092\u6574\u3048\u305f\u3044\u304c\u3001\u4f55\u3092\u57fa\u6e96\u306b\u3059\u308c\u3070\u3044\u3044\u304b\u5206\u304b\u3089\u306a\u3044\u300d\u3068\u3044\u3046\u3054\u76f8\u8ac7\u3082\u591a\u304f\u3044\u305f\u3060\u304d\u307e\u3059\u3002\u307e\u305a\u306f\u7121\u6599\u76f8\u8ac7\u3067\u3001\u81ea\u793e\u306b\u5408\u3063\u305f\u9032\u3081\u65b9\u3092\u4e00\u7dd2\u306b\u8003\u3048\u307e\u3057\u3087\u3046\u3002<\/div>\n<\/div>\n\n\n\n<p>\u3053\u3053\u304b\u3089\u5148\u306e\u9032\u3081\u65b9\u306f\u3001\u5927\u304d\u304f2\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u81ea\u793e\u3067\u56de\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u305f\u3044\u65b9<\/strong>\u306f\u3001<strong>AI\u9b3c\u7ba1\u7406<\/strong>\u3067Claude Code\uff0fCodex\u306e\u4f7f\u3044\u65b9\u304b\u3089\u696d\u52d9\u8a2d\u8a08\u30fb\u793e\u5185\u5b9a\u7740\u307e\u3067\u4f34\u8d70\u3092\u53d7\u3051\u306a\u304c\u3089\u3001\u793e\u5185\u306b\u4ed5\u7d44\u307f\u3092\u4f5c\u308b\u9053\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u899a\u3048\u308b\u3088\u308a\u4efb\u305b\u305f\u3044\u65b9<\/strong>\u306f\u3001<strong>AI\u793e\u54e1AIKATA<\/strong>\u3067\u3053\u306e\u8a18\u4e8b\u306e\u3088\u3046\u306a\u5b9a\u578b\u696d\u52d9\u3092\u4e38\u3054\u3068\u9810\u3051\u308b\u9053\u304c\u3042\u308a\u307e\u3059\u3002\u6599\u91d1\u306f\u670830\u4e07\u5186\u306e\u6708\u984d\u5b9a\u984d\u3001\u8ffd\u52a0\u8cbb\u7528\u306f0\u5186\u3067\u3059\u3002<\/p>\n<p>\u3069\u3061\u3089\u304c\u5408\u3046\u304b\u306f\u3001\u696d\u52d9\u91cf\u3068\u793e\u5185\u4f53\u5236\u6b21\u7b2c\u3067\u3059\u3002\u7121\u6599\u76f8\u8ac7\u30fb\u7121\u6599\u9069\u5408\u8a3a\u65ad\u3067\u3001\u8cb4\u793e\u306e\u5834\u5408\u306f\u3069\u3061\u3089\u304c\u5411\u304f\u304b\u304b\u3089\u3054\u76f8\u8ac7\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"background:#fff;border:2px solid #eee;border-radius:16px;padding:32px 20px;margin:48px 0 16px;\">\n  <p style=\"text-align:center;font-size:13px;font-weight:700;color:#dc2626;letter-spacing:2px;margin:0 0 12px;\">NEXT STEP<\/p>\n  <p style=\"text-align:center;font-size:22px;font-weight:800;line-height:1.5;color:#1a1a1a;margin:0 0 24px;\">\u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9\u3092\u3001\u3042\u306a\u305f\u306e\u30d3\u30b8\u30cd\u30b9\u3067<br>\u5b9f\u8df5\u3057\u3066\u307f\u307e\u305b\u3093\u304b\uff1f<\/p>\n  <div style=\"display:flex;gap:16px;flex-wrap:wrap;justify-content:center;\">\n    <div style=\"flex:1 1 300px;max-width:560px;background:#fafafa;border:1px solid #eee;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;\">\n      <img src=\"https:\/\/genai-ai.co.jp\/img\/flagship-onikanri.png\" alt=\"AI\u9b3c\u7ba1\u7406 \u2014 Claude Code\u5c0e\u5165\u652f\u63f4\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\" loading=\"lazy\" decoding=\"async\" style=\"width:100%;height:auto;aspect-ratio:16\/9;object-fit:cover;display:block;\">\n      <div style=\"padding:20px 20px 24px;display:flex;flex-direction:column;flex:1;\">\n        <p style=\"font-size:13px;color:#dc2626;font-weight:700;margin:0 0 8px;\">AI\u6d3b\u7528\u3092\u81ea\u793e\u3067\u56de\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u305f\u3044\u65b9\u3078<\/p>\n        <p style=\"font-size:20px;font-weight:800;color:#1a1a1a;margin:0 0 12px;\">AI\u9b3c\u7ba1\u7406<\/p>\n        <p style=\"font-size:14px;color:#555;margin:0 0 20px;line-height:1.7;\">Claude Code\u30fbCowork\u5c0e\u5165\u652f\u63f4\u304b\u3089\u696d\u52d9\u8a2d\u8a08\u30fb\u793e\u5185\u6d78\u900f\u307e\u3067\u5b9f\u8df5\u30d9\u30fc\u30b9\u3067\u4f34\u8d70\u3002\u300c\u81ea\u793e\u3067\u56de\u305b\u308b\u7d44\u7e54\u300d\u309290\u65e5\u3067\u4f5c\u308b\u7d4c\u55b6\u8005\u5411\u3051\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3002<\/p>\n        <div style=\"text-align:center;margin-top:auto;\">\n          <a href=\"https:\/\/aikanri.genai-ai.co.jp\/?utm_source=blog&utm_medium=article&utm_campaign=cc-python-random-guide&utm_content=next-step-cta\" target=\"_blank\" rel=\"noopener\" style=\"display:inline-block;background:#dc2626;color:#fff;font-weight:700;font-size:15px;padding:14px 32px;border-radius:30px;text-decoration:none;\">AI\u9b3c\u7ba1\u7406\u3092\u8a73\u3057\u304f\u898b\u308b \u2192<\/a>\n        <\/div>\n      <\/div>\n    <\/div>\n    <div style=\"flex:1 1 300px;max-width:560px;background:#fafafa;border:1px solid #eee;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;\">\n      <img src=\"https:\/\/genai-ai.co.jp\/img\/flagship-aibpo.png\" alt=\"AI\u793e\u54e1AIKATA \u2014 \u5b9a\u578b\u696d\u52d9\u306e\u4e38\u3054\u3068\u4ee3\u884c\" loading=\"lazy\" decoding=\"async\" style=\"width:100%;height:auto;aspect-ratio:16\/9;object-fit:cover;display:block;\">\n      <div style=\"padding:20px 20px 24px;display:flex;flex-direction:column;flex:1;\">\n        <p style=\"font-size:13px;color:#dc2626;font-weight:700;margin:0 0 8px;\">\u696d\u52d9\u3092\u4e38\u3054\u3068\u4efb\u305b\u305f\u3044\u65b9\u3078<\/p>\n        <p style=\"font-size:20px;font-weight:800;color:#1a1a1a;margin:0 0 12px;\">AI\u793e\u54e1AIKATA<\/p>\n        <p style=\"font-size:14px;color:#555;margin:0 0 20px;line-height:1.7;\">\u8acb\u6c42\u51e6\u7406\u30fb\u30c7\u30fc\u30bf\u5165\u529b\u30fb\u554f\u3044\u5408\u308f\u305b\u5bfe\u5fdc\u306a\u3069\u306e\u5b9a\u578b\u696d\u52d9\u3092\u3001AI\u00d7\u4eba\u306e\u54c1\u8cea\u7ba1\u7406\u4f53\u5236\u3067\u4e38\u3054\u3068\u4ee3\u884c\u3002\u670830\u4e07\u5186\u306e\u5b9a\u984d\u3067\u307e\u304b\u305b\u653e\u984c\u3001\u65e5\u3005\u306f\u6210\u679c\u7269\u3092\u627f\u8a8d\u3059\u308b\u3060\u3051\u3002<\/p>\n        <div style=\"text-align:center;margin-top:auto;\">\n          <a href=\"https:\/\/genai-ai.co.jp\/ai-kanri\/ai-bpo\/?utm_source=blog&utm_medium=article&utm_campaign=cc-python-random-guide&utm_content=next-step-cta-bpo\" target=\"_blank\" rel=\"noopener\" style=\"display:inline-block;background:#dc2626;color:#fff;font-weight:700;font-size:15px;padding:14px 32px;border-radius:30px;text-decoration:none;\">AI\u793e\u54e1AIKATA\u3092\u8a73\u3057\u304f\u898b\u308b \u2192<\/a>\n        <\/div>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faq\">\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Q. random.randint()\u3068random.randrange()\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. random.randint(a, b)\u306fa\u3068b\u306e\u4e21\u65b9\u3092\u542b\u3080\u7bc4\u56f2\u304b\u3089\u6574\u6570\u3092\u8fd4\u3057\u307e\u3059\u3002\u4e00\u65b9random.randrange(a, b)\u306frange()\u3068\u540c\u3058\u4ed5\u69d8\u3067\u3001b\u3092\u542b\u307e\u306a\u3044\u7bc4\u56f2\u304b\u3089\u6574\u6570\u3092\u8fd4\u3057\u307e\u3059\u3002\u300c1\u301c10\u300d\u3092\u610f\u56f3\u3057\u3066randrange(1, 10)\u3068\u66f8\u304f\u30689\u307e\u3067\u3057\u304b\u51fa\u306a\u3044\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. random.choices()\u3068random.sample()\u306f\u3069\u3046\u4f7f\u3044\u5206\u3051\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. random.choices()\u306f\u91cd\u8907\u3042\u308a\u3067\u8907\u6570\u8981\u7d20\u3092\u9078\u3076\u95a2\u6570\u3067\u3001\u540c\u3058\u8981\u7d20\u304c\u8907\u6570\u56de\u9078\u3070\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002random.sample()\u306f\u91cd\u8907\u306a\u3057\u3067\u9078\u3076\u95a2\u6570\u3067\u3059\u3002\u62bd\u9078\u4f1a\u306e\u5f53\u9078\u8005\u9078\u3073\u306e\u3088\u3046\u306b\u91cd\u8907\u3092\u907f\u3051\u305f\u3044\u5834\u5408\u306fsample()\u3001\u30b5\u30a4\u30b3\u30ed\u3092\u8907\u6570\u56de\u632f\u308b\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u3088\u3046\u306b\u91cd\u8907\u3057\u3066\u3088\u3044\u5834\u5408\u306fchoices()\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. random.shuffle()\u306e\u623b\u308a\u5024\u3092print\u3057\u3066\u3082\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u306e\u306f\u306a\u305c\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. random.shuffle()\u306f\u30ea\u30b9\u30c8\u3092\u76f4\u63a5\u305d\u306e\u5834\u3067\u4e26\u3073\u66ff\u3048\u308b\u95a2\u6570\u3067\u3001\u623b\u308a\u5024\u306f\u5e38\u306bNone\u3060\u304b\u3089\u3067\u3059\u3002\u30b7\u30e3\u30c3\u30d5\u30eb\u3057\u305f\u7d50\u679c\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f\u3001shuffle()\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u306e\u30ea\u30b9\u30c8\u305d\u306e\u3082\u306e\u3092print\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u3068\u4e2d\u8eab\u304cNone\u306b\u306a\u3063\u3066\u6d88\u3048\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. \u306a\u305c\u30d1\u30b9\u30ef\u30fc\u30c9\u751f\u6210\u306brandom\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u306e\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. Python\u306erandom\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u30e1\u30eb\u30bb\u30f3\u30cc\u30fb\u30c4\u30a4\u30b9\u30bf\u3068\u3044\u3046\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u4f7f\u3063\u3066\u304a\u308a\u3001\u7d71\u8a08\u7684\u306a\u54c1\u8cea\u306f\u9ad8\u3044\u3082\u306e\u306e\u6697\u53f7\u5b66\u7684\u306b\u306f\u5b89\u5168\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5341\u5206\u306a\u6570\u306e\u51fa\u529b\u3092\u89b3\u6e2c\u3055\u308c\u308b\u3068\u5185\u90e8\u72b6\u614b\u3092\u63a8\u6e2c\u3055\u308c\u3001\u751f\u6210\u3055\u308c\u308b\u5024\u3092\u4e88\u6e2c\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u3084\u30c8\u30fc\u30af\u30f3\u306a\u3069\u4e88\u6e2c\u3055\u308c\u308b\u3068\u56f0\u308b\u7528\u9014\u306b\u306f\u3001\u6697\u53f7\u5b66\u7684\u306b\u5b89\u5168\u306asecrets\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. seed()\u3092\u4f7f\u3046\u3068\u3069\u3093\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u540c\u3058\u30b7\u30fc\u30c9\u5024\u3092\u6307\u5b9a\u3059\u308c\u3070\u3001\u751f\u6210\u3055\u308c\u308b\u4e71\u6570\u306e\u9806\u756a\u3092\u6bce\u56de\u540c\u3058\u306b\u3067\u304d\u308b\u305f\u3081\u3001\u30c6\u30b9\u30c8\u3084\u30c7\u30d0\u30c3\u30b0\u3067\u7d50\u679c\u3092\u518d\u73fe\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u30e9\u30f3\u30c0\u30e0\u306a\u8981\u7d20\u3092\u542b\u3080\u51e6\u7406\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u969b\u3001seed()\u3067\u4e71\u6570\u3092\u56fa\u5b9a\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u5b9f\u884c\u7d50\u679c\u304c\u5b89\u5b9a\u3057\u305f\u691c\u8a3c\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q. \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u751f\u6210\u306brandom\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3046\u306e\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3084\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u306e\u3088\u3046\u306b\u300c\u4e88\u6e2c\u3055\u308c\u3066\u3082\u5b9f\u5bb3\u304c\u306a\u3044\u300d\u7528\u9014\u3067\u3042\u308c\u3070\u3001random\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u5341\u5206\u3067\u3059\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u6ce8\u610f\u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u306f\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3084\u30c8\u30fc\u30af\u30f3\u306a\u3069\u3001\u4ed6\u4eba\u306b\u4e88\u6e2c\u3055\u308c\u308b\u3068\u5b9f\u969b\u306e\u88ab\u5bb3\u306b\u3064\u306a\u304c\u308b\u5024\u3092\u751f\u6210\u3059\u308b\u5834\u5408\u306b\u9650\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"random.randint()\u3068random.randrange()\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"random.randint(a, b)\u306fa\u3068b\u306e\u4e21\u65b9\u3092\u542b\u3080\u7bc4\u56f2\u304b\u3089\u6574\u6570\u3092\u8fd4\u3057\u307e\u3059\u3002\u4e00\u65b9random.randrange(a, b)\u306frange()\u3068\u540c\u3058\u4ed5\u69d8\u3067\u3001b\u3092\u542b\u307e\u306a\u3044\u7bc4\u56f2\u304b\u3089\u6574\u6570\u3092\u8fd4\u3057\u307e\u3059\u3002\u300c1\u301c10\u300d\u3092\u610f\u56f3\u3057\u3066randrange(1, 10)\u3068\u66f8\u304f\u30689\u307e\u3067\u3057\u304b\u51fa\u306a\u3044\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"random.choices()\u3068random.sample()\u306f\u3069\u3046\u4f7f\u3044\u5206\u3051\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"random.choices()\u306f\u91cd\u8907\u3042\u308a\u3067\u8907\u6570\u8981\u7d20\u3092\u9078\u3076\u95a2\u6570\u3067\u3001\u540c\u3058\u8981\u7d20\u304c\u8907\u6570\u56de\u9078\u3070\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002random.sample()\u306f\u91cd\u8907\u306a\u3057\u3067\u9078\u3076\u95a2\u6570\u3067\u3059\u3002\u62bd\u9078\u4f1a\u306e\u5f53\u9078\u8005\u9078\u3073\u306e\u3088\u3046\u306b\u91cd\u8907\u3092\u907f\u3051\u305f\u3044\u5834\u5408\u306fsample()\u3001\u30b5\u30a4\u30b3\u30ed\u3092\u8907\u6570\u56de\u632f\u308b\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u3088\u3046\u306b\u91cd\u8907\u3057\u3066\u3088\u3044\u5834\u5408\u306fchoices()\u3092\u4f7f\u3044\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"random.shuffle()\u306e\u623b\u308a\u5024\u3092print\u3057\u3066\u3082\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u306e\u306f\u306a\u305c\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"random.shuffle()\u306f\u30ea\u30b9\u30c8\u3092\u76f4\u63a5\u305d\u306e\u5834\u3067\u4e26\u3073\u66ff\u3048\u308b\u95a2\u6570\u3067\u3001\u623b\u308a\u5024\u306f\u5e38\u306bNone\u3060\u304b\u3089\u3067\u3059\u3002\u30b7\u30e3\u30c3\u30d5\u30eb\u3057\u305f\u7d50\u679c\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f\u3001shuffle()\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u306e\u30ea\u30b9\u30c8\u305d\u306e\u3082\u306e\u3092print\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u3068\u4e2d\u8eab\u304cNone\u306b\u306a\u3063\u3066\u6d88\u3048\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u306a\u305c\u30d1\u30b9\u30ef\u30fc\u30c9\u751f\u6210\u306brandom\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u306e\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Python\u306erandom\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u30e1\u30eb\u30bb\u30f3\u30cc\u30fb\u30c4\u30a4\u30b9\u30bf\u3068\u3044\u3046\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u4f7f\u3063\u3066\u304a\u308a\u3001\u7d71\u8a08\u7684\u306a\u54c1\u8cea\u306f\u9ad8\u3044\u3082\u306e\u306e\u6697\u53f7\u5b66\u7684\u306b\u306f\u5b89\u5168\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5341\u5206\u306a\u6570\u306e\u51fa\u529b\u3092\u89b3\u6e2c\u3055\u308c\u308b\u3068\u5185\u90e8\u72b6\u614b\u3092\u63a8\u6e2c\u3055\u308c\u3001\u751f\u6210\u3055\u308c\u308b\u5024\u3092\u4e88\u6e2c\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u3084\u30c8\u30fc\u30af\u30f3\u306a\u3069\u4e88\u6e2c\u3055\u308c\u308b\u3068\u56f0\u308b\u7528\u9014\u306b\u306f\u3001\u6697\u53f7\u5b66\u7684\u306b\u5b89\u5168\u306asecrets\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"seed()\u3092\u4f7f\u3046\u3068\u3069\u3093\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u540c\u3058\u30b7\u30fc\u30c9\u5024\u3092\u6307\u5b9a\u3059\u308c\u3070\u3001\u751f\u6210\u3055\u308c\u308b\u4e71\u6570\u306e\u9806\u756a\u3092\u6bce\u56de\u540c\u3058\u306b\u3067\u304d\u308b\u305f\u3081\u3001\u30c6\u30b9\u30c8\u3084\u30c7\u30d0\u30c3\u30b0\u3067\u7d50\u679c\u3092\u518d\u73fe\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u30e9\u30f3\u30c0\u30e0\u306a\u8981\u7d20\u3092\u542b\u3080\u51e6\u7406\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u969b\u3001seed()\u3067\u4e71\u6570\u3092\u56fa\u5b9a\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u5b9f\u884c\u7d50\u679c\u304c\u5b89\u5b9a\u3057\u305f\u691c\u8a3c\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u751f\u6210\u306brandom\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3046\u306e\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3084\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u306e\u3088\u3046\u306b\u300c\u4e88\u6e2c\u3055\u308c\u3066\u3082\u5b9f\u5bb3\u304c\u306a\u3044\u300d\u7528\u9014\u3067\u3042\u308c\u3070\u3001random\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u5341\u5206\u3067\u3059\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u6ce8\u610f\u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u306f\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3084\u30c8\u30fc\u30af\u30f3\u306a\u3069\u3001\u4ed6\u4eba\u306b\u4e88\u6e2c\u3055\u308c\u308b\u3068\u5b9f\u969b\u306e\u88ab\u5bb3\u306b\u3064\u306a\u304c\u308b\u5024\u3092\u751f\u6210\u3059\u308b\u5834\u5408\u306b\u9650\u3089\u308c\u307e\u3059\u3002\"\n      }\n    }\n  ]\n}\n<\/script>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Python\u306erandom\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u57fa\u672c\u95a2\u6570\uff08random\/uniform\/randint\/choice\/choices\/sample\/shuffle\/seed\uff09\u3092\u89e3\u8aac\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u751f\u6210\u306brandom\u3092\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u7406\u7531\u3068secrets\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u306e\u4f7f\u3044\u5206\u3051\u3001Claude Code\u3092\u4f7f\u3063\u305f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u751f\u6210\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":47193,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sitemap_hide":"","_veu_custom_css":"","vkexunit_cta_each_option":"","_lightning_design_setting":[],"footnotes":"","rank_math_description":"Python\u306erandom\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u57fa\u672c\u95a2\u6570\uff08random\/uniform\/randint\/choice\/choices\/sample\/shuffle\/seed\uff09\u3092\u89e3\u8aac\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u751f\u6210\u306brandom\u3092\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u7406\u7531\u3068secrets\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u306e\u4f7f\u3044\u5206\u3051\u3001Claude Code\u3092\u4f7f\u3063\u305f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u751f\u6210\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002","rank_math_focus_keyword":"Python random \u4f7f\u3044\u65b9","rank_math_title":"\u30102026\u5e749\u6708\u6700\u65b0\u3011Python\u306erandom\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4f7f\u3044\u65b9\u3092\u5b8c\u5168\u89e3\u8aac\uff5cchoice\u30fbsample\u30fbseed\u304b\u3089\u30bb\uff5cAI\u9b3c\u7ba1\u7406","pending_rewrite_html":"","pending_rewrite_id":"","pending_rewrite_kw":"","pending_rewrite_at":"","pending_rewrite_source":"","pending_rewrite_brief":"","pending_rewrite_evidence":"","approved_rewrite_html":"","approved_rewrite_id":"","approved_rewrite_kw":"","approved_rewrite_at":"","approved_rewrite_by":"","approved_rewrite_brief":"","approved_rewrite_evidence":"","rewrite_tracker_baseline":"","rewrite_tracker_7day":"","rewrite_tracker_14day":"","rewrite_tracker_30day":"","rewrite_tracker_notified":""},"categories":[3,2],"tags":[],"class_list":["post-47189","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-automation","category-claude-tips"],"_links":{"self":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/47189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/comments?post=47189"}],"version-history":[{"count":3,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/47189\/revisions"}],"predecessor-version":[{"id":47194,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/posts\/47189\/revisions\/47194"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/media\/47193"}],"wp:attachment":[{"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/media?parent=47189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/categories?post=47189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/genai-ai.co.jp\/ai-kanri\/wp-json\/wp\/v2\/tags?post=47189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}