{"categories":["Scala","Ruby"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatahirado.hatenablog.com%2Fentry%2F20081208%2F1228740558\" title=\"A Random Number List - \u4ed9\u53f0 Ruby Vim JavaScript \u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30d7\u30ed\u30b0\u30e9\u30de\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u4ed9\u53f0 Ruby Vim JavaScript \u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30d7\u30ed\u30b0\u30e9\u30de","height":"190","url":"https://katahirado.hatenablog.com/entry/20081208/1228740558","width":"100%","version":"1.0","author_url":"https://blog.hatena.ne.jp/yuichi_katahira/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","published":"2008-12-08 21:49:18","type":"rich","description":"deprication\u304c\u51fa\u3066\u3089\u30fc\u3002 scala> def randList(len: Int,n:Int)={ | val gen = new Random | 1 to len map((x:Int) => gen.nextInt(n)) | } warning: there were deprecation warnings; re-run with -deprecation for details randList: (Int,Int)RandomAccessSeq.Projection[Int] scala> randList(5,10) res0: RandomAccessSeq.P\u2026","blog_url":"https://katahirado.hatenablog.com/","author_name":"yuichi_katahira","image_url":null,"title":"A Random Number List"}