<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Roxana Davis</title>
    <description>The latest articles on DEV Community by Roxana Davis (@roxanadavis).</description>
    <link>https://dev.to/roxanadavis</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1073640%2F96db133c-a7cc-4115-b9a7-61856024d8b0.png</url>
      <title>DEV Community: Roxana Davis</title>
      <link>https://dev.to/roxanadavis</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roxanadavis"/>
    <language>en</language>
    <item>
      <title>Random Number Generator</title>
      <dc:creator>Roxana Davis</dc:creator>
      <pubDate>Fri, 28 Apr 2023 20:05:10 +0000</pubDate>
      <link>https://dev.to/roxanadavis/random-number-generator-426h</link>
      <guid>https://dev.to/roxanadavis/random-number-generator-426h</guid>
      <description>&lt;p&gt;The tool is a Random Number Generator implemented using HTML, CSS, and JavaScript. When the user clicks on the "Generate Number" button, the JavaScript function generateRandomNumber() is triggered, which generates a random number between 1 and 100 using the Math.random() function. The generated number is displayed on the web page using the innerHTML property of the &lt;/p&gt;
&lt;p&gt; element with the id="result".&lt;/p&gt;

&lt;p&gt;The HTML code includes a header with the title "Random Number Generator", a brief description of the tool, and the button to trigger the JavaScript function. The CSS code is used to style the page elements, including the font, button color, and footer.&lt;/p&gt;

&lt;p&gt;The footer includes a copyright notice and can be used to include a link to the website that hosts the tool. This tool can be used for a variety of applications, such as generating a random number for a lottery, a game, or for selecting a winner in a contest.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;Random Number Generator&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" type="text/css" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;h1&amp;gt;Random Number Generator&amp;lt;/h1&amp;gt;
    &amp;lt;p&amp;gt;Click the button to generate a random number:&amp;lt;/p&amp;gt;
    &amp;lt;button onclick="generateRandomNumber()"&amp;gt;Generate Number&amp;lt;/button&amp;gt;
    &amp;lt;p id="result"&amp;gt;&amp;lt;/p&amp;gt;
    &amp;lt;script src="script.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

h1 {
    margin-top: 50px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

footer {
    margin-top: 50px;
    background-color: #ddd;
    padding: 10px;
    position: absolute;
    bottom: 0;
    width: 100%;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function generateRandomNumber() {
    var randomNumber = Math.floor(Math.random() * 100) + 1;
    document.getElementById("result").innerHTML = "Your random number is: " + randomNumber;
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This tool is developed by Roxana Davis from &lt;a href="https://poppyplaytimeapk.com/"&gt;Poppy Playtime APK&lt;/a&gt;.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
