Skip to content

A team effort for developing a GUI based Random Number Generator.

Notifications You must be signed in to change notification settings

Vanshbhattok/Random-number-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

This project is created by members of Team-9 (DevOPS & SCM).

Looking to enhance the GUI and add functionalities.

New features would be added like 7-UP,Tambola, etc.

Follow along for newer updates as our team proceeds.

225813708-98b745f2-7d22-48cf-9150-083f1b00d6c9

<style> * { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f2f2f2;
}

.container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  width: 300px;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

.input-section {
  margin-bottom: 20px;
}

input[type="number"] {
  padding: 8px;
  margin: 10px 5px;
  width: 80px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

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

button:hover {
  background-color: #45a049;
}

button:active {
  background-color: #3e8e41;
}

#randomNumber {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 0;
  color: #333;
}

#reset {
  background-color: #f44336;
  margin-top: 10px;
}

#reset:hover {
  background-color: #e53935;
}
</style>

Random Number Generator

Minimum: Maximum:
Generate Random Number

Click the button to generate

Reset
<script> document.getElementById('generate').addEventListener('click', function() { const min = parseInt(document.getElementById('min').value); const max = parseInt(document.getElementById('max').value); const randomNumber = Math.floor(Math.random() * (max - min + 1)) + min; document.getElementById('randomNumber').innerText = randomNumber; }); document.getElementById('reset').addEventListener('click', function() { document.getElementById('randomNumber').innerText = 'Click the button to generate'; document.getElementById('min').value = 1; document.getElementById('max').value = 100; }); </script>

About

A team effort for developing a GUI based Random Number Generator.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published