<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>leader22</author_name>
  <author_url>https://blog.hatena.ne.jp/leader22/</author_url>
  <blog_title>console.lealog();</blog_title>
  <blog_url>https://lealog.hateblo.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>ぱっと思い出せないものは全てメモします・・。 0か1を取りたいとき var rndm = Math.floor(Math.random()*2); 0から10を取りたいとき var rndm = Math.floor(Math.random()*11); 最後に掛け算する数値-1が、ランダムに取れるというわけね！ということは、 1から10を取りたい時 var rndm = Math.floor(Math.random()*10)+1; // 取得できるのは0-9、それに+1することで1-10が取れる よし、覚えた！</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flealog.hateblo.jp%2Fentry%2F2012%2F03%2F04%2F085333&quot; title=&quot;0か1の値、とある整数までの値をランダムに取りたい時 - console.lealog();&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-03-04 08:53:33</published>
  <title>0か1の値、とある整数までの値をランダムに取りたい時</title>
  <type>rich</type>
  <url>https://lealog.hateblo.jp/entry/2012/03/04/085333</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
