{"description":"30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u305d\u306e363\u3002id:mzp:20080825:shuffle\u306e\u7d9a\u304d\u3068\u3057\u3066\u3001bogosort\u3092\u3084\u3063\u3066\u307f\u308b\u3002 \u305b\u3063\u304b\u304fErlang\u306a\u306e\u3067\u4e26\u5217\u30d0\u30fc\u30b8\u30e7\u30f3\u3082\u4f5c\u3063\u3066\u307f\u305f\u3051\u3069\u3001\u5fae\u5999\u3002\u8a08\u7b97\u304c\u7d42\u4e86\u3057\u305f\u3042\u3068\u3082\u4f59\u8a08\u306a\u30d7\u30ed\u30bb\u30b9\u3092\u6bba\u3057\u3066\u306a\u3044\u306e\u3067\u3001\u4f59\u8a08\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u98db\u3093\u3067\u304f\u308b\u3002 \u4f7f\u3044\u65b9 1> Xs = shuffle:shuffle(lists:seq(1,5)). [1,3,5,2,4] 2> bogosort:multibogo(Xs,3). {1,[1,2,3,4,5]} \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 -module(bogosort). -compile([export_all]). is_sorted([X,\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20080912%2Fbogosort\" title=\"\u4e26\u5217bogosort - \u307f\u305a\u3074\u30fc\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","title":"\u4e26\u5217bogosort","author_url":"https://blog.hatena.ne.jp/mzp/","height":"190","type":"rich","published":"2008-09-12 00:00:01","version":"1.0","categories":["Erlang","30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0"],"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","image_url":null,"url":"https://mzp.hatenadiary.org/entry/20080912/bogosort","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","author_name":"mzp","blog_url":"https://mzp.hatenadiary.org/"}