<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yasui_swift</author_name>
  <author_url>https://blog.hatena.ne.jp/yasui_swift/</author_url>
  <blog_title>泣きながら覚えるSwift日記</blog_title>
  <blog_url>https://yasui-swift.hatenadiary.org/</blog_url>
  <categories>
    <anon>コード</anon>
  </categories>
  <description>閏年は手強いので、しばらく休み、次に行くことにした。 乱数を習う。教科書は「SwiftではじめるiPhoneアプリ開発の教科書」（森巧尚著、マイナビ出版）を使う。 この教科書は入門書だが、全くの素人には少し難解だ。 丁寧に書いてあるが、予備知識がないと挫折する可能性が高いと思う。じゃんけんゲームで乱数を使ってゲームをする初歩的なプロジェクトを作る。 丸写しでは著者に申し訳ないので、勝ち負けの回数を表示するように手を加えた。乱数の発生の準備にUIはGameplayKitを最初にインポートする(import GameplayKit)。 次に、let randamSource = GKARC4Ran…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyasui-swift.hatenadiary.org%2Fentry%2F20151127%2F1448656726&quot; title=&quot;乱数を使う - 泣きながら覚えるSwift日記&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>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yasui_swift/20151128/20151128053304.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-11-27 05:38:46</published>
  <title>乱数を使う</title>
  <type>rich</type>
  <url>https://yasui-swift.hatenadiary.org/entry/20151127/1448656726</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
