<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Math.random() Archives</title>
	<atom:link href="https://openjavascript.info/tag/math-random/feed/" rel="self" type="application/rss+xml" />
	<link>https://openjavascript.info/tag/math-random/</link>
	<description>Learn the language of the web.</description>
	<lastBuildDate>Sun, 11 Dec 2022 07:15:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>

<image>
	<url>https://openjavascript.info/wp-content/uploads/2023/12/cropped-android-chrome-192x192-1-32x32.png</url>
	<title>Math.random() Archives</title>
	<link>https://openjavascript.info/tag/math-random/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Random Image with JavaScript</title>
		<link>https://openjavascript.info/2022/12/11/random-image-with-javascript/</link>
					<comments>https://openjavascript.info/2022/12/11/random-image-with-javascript/#respond</comments>
		
		<dc:creator><![CDATA[OpenJavaScript]]></dc:creator>
		<pubDate>Sun, 11 Dec 2022 06:57:55 +0000</pubDate>
				<category><![CDATA[Displaying data]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[DOM manipulation]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[Math.random()]]></category>
		<category><![CDATA[utility function]]></category>
		<guid isPermaLink="false">https://openjavascript.info/?p=6254</guid>

					<description><![CDATA[<p>You can use JavaScript to display a random image, both on page load and when a user clicks to get another image. Start by creating an &#60;img&#62; element without an src value: &#60;img id="random-image" src="" alt="Random image"&#62; You can then make a random image appear in the element by storing the path to all images &#8230; </p>
<p class="link-more"><a href="https://openjavascript.info/2022/12/11/random-image-with-javascript/" class="more-link">Continue reading<span class="screen-reader-text"> "Random Image with JavaScript"</span></a></p>
<p>The post <a rel="nofollow" href="https://openjavascript.info/2022/12/11/random-image-with-javascript/">Random Image with JavaScript</a> appeared first on <a rel="nofollow" href="https://openjavascript.info">OpenJavaScript.info</a>.</p>
]]></description>
		
					<wfw:commentRss>https://openjavascript.info/2022/12/11/random-image-with-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
