<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yachin29</author_name>
  <author_url>https://blog.hatena.ne.jp/yachin29/</author_url>
  <blog_title>WEBサイト制作の勉強</blog_title>
  <blog_url>https://yachin29.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>2025年04月クラス</anon>
  </categories>
  <description>JavaScriptで乱数を取得したい場合には「random関数」を使います。 覚えるメソッド Math.random Math.random()は、0〜0.9999...(1未満)の間から、1つの数値をランダムで返すメソッドです。0は含みますが、1は含みません。 Math.round Math.floor()は、小数点以下を四捨五入するメソッドです。整数を取得したい場合に利用します。 Math.ceil Math.floor()は、小数点以下を切り上げるメソッドです。0.999なら1、3.21なら4という数値を返します。 Math.floor Math.floor()は、小数点以下を切り捨て…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyachin29.hatenablog.com%2Fentry%2F2016%2F04%2F11%2F014931&quot; title=&quot;random関数 - WEBサイト制作の勉強&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>2025-06-13 01:49:31</published>
  <title>random関数</title>
  <type>rich</type>
  <url>https://yachin29.hatenablog.com/entry/2016/04/11/014931</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
