diff --git a/Calculators/Random-Number-Generator/README.md b/Calculators/Random-Number-Generator/README.md new file mode 100644 index 000000000..05e7889a0 --- /dev/null +++ b/Calculators/Random-Number-Generator/README.md @@ -0,0 +1,31 @@ +# Random Number Generator + +This is a simple Random Number Generator built using HTML, CSS, and JavaScript. + +## Features + +- Generates a random number between 1 and 100. +- Attractive blue-themed design. +- Responsive and centered layout. + +## How to Use + +1. Clone the repository or download the files. +2. Open the `index.html` file in your web browser. +3. Click the "Generate Number" button to see a random number displayed. + +## File Structure + +- `index.html`: The main HTML file. +- `styles.css`: The CSS file for styling the page. +- `script.js`: The JavaScript file containing the logic for generating a random number. + +## Folder Structure + +RandomNumberGenerator/ +│ +├── index.html +├── styles.css +├── script.js +└── README.md + diff --git a/Calculators/Random-Number-Generator/index.html b/Calculators/Random-Number-Generator/index.html new file mode 100644 index 000000000..e446d905e --- /dev/null +++ b/Calculators/Random-Number-Generator/index.html @@ -0,0 +1,18 @@ + + + + + + Random Number Generator + + + +
+

Random Number Generator

+

Click the button to generate a random number.

+ +
+
+ + + diff --git a/Calculators/Random-Number-Generator/script.js b/Calculators/Random-Number-Generator/script.js new file mode 100644 index 000000000..8af8c76b2 --- /dev/null +++ b/Calculators/Random-Number-Generator/script.js @@ -0,0 +1,4 @@ +function generateRandomNumber() { + const randomNumber = Math.floor(Math.random() * 100) + 1; + document.getElementById('result').innerText = 'Random Number: ' + randomNumber; +} diff --git a/Calculators/Random-Number-Generator/styles.css b/Calculators/Random-Number-Generator/styles.css new file mode 100644 index 000000000..cf2e610f6 --- /dev/null +++ b/Calculators/Random-Number-Generator/styles.css @@ -0,0 +1,46 @@ +body { + background-color: #e0f7fa; + font-family: Arial, sans-serif; + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + margin: 0; +} + +.container { + text-align: center; + background-color: #0288d1; + padding: 20px; + border-radius: 10px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); + color: #fff; +} + +h1 { + margin: 0 0 20px; +} + +button { + background-color: #0277bd; + border: none; + color: white; + padding: 15px 32px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 16px; + margin: 10px 0; + cursor: pointer; + border-radius: 5px; +} + +button:hover { + background-color: #01579b; +} + +#result { + margin-top: 20px; + font-size: 24px; + font-weight: bold; +} diff --git a/index.html b/index.html index 4abdaab88..c3cec87bb 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,7 @@ + CalcDiverse @@ -160,6 +161,34 @@

Calculate the theoretical resistance of a 4-band resistor.

+
+
+

ASCII Value Calculator

+

Calculates the ASCII value of any character.

+ +
+
+
+
+

Abundant Number Calculator

+

Checks for a number to be abundant or not.

+ +
+

Age Calculator

@@ -188,6 +217,20 @@

Calculates the level of the air quality using AQI index as input.

+
+
+

Amortization Calculator

+

Calculates the monthly payments and generates an Amortization schedule for loans.

+ +
+

Anagram Calculator

@@ -216,6 +259,20 @@

Calculates the antilog of the any given number taken over any base.

+
+
+

Arithmetic Geometric Progression Calculator

+

Calculates nth Term and sum of n Terms of the Arithmetic Geometric Sequence.

+ +
+

Arithmetic Progression Calculator

@@ -258,6 +315,21 @@

Calculates the aspect ratio of the specified height and width.

+
+
+

Astrological Age Calculator

+

Calculates the age on different planets as selected by the user.

+ +
+

Averages Calculator

@@ -300,6 +372,20 @@

Calculates the Basal Metabolic Rate of a person using height, weight & age.<

+
+
+

Base Change Calculator

+

Converts a number between different bases.

+ +
+

Basic Calculator

@@ -384,6 +470,20 @@

Given any number, it reaches to Four.

+
+
+

Body Fat Percentage Calculator

+

Calculates the body fat percentage of a person using neck, waist, weight & height.

+ +
+

Book Reading Time Calculator

@@ -412,6 +512,20 @@

Check the number is bouncy or not and finds bouncy numbers in a range.

+
+
+

Buzz Number Calculator

+

Checks for a number to be a buzz number or not.

+ +
+

CGPA Percentage Calculator

@@ -426,6 +540,20 @@

Converts CGPA to percentage and vice-versa.

+
+
+

CPU Scheduling Calculator

+

Calculates the wait time and turnaround time for various CPU scheduling algorithms.

+ +
+

CSS Unit Calculator

@@ -454,6 +582,20 @@

Calculates the amount of calories burnt from particular exercise.

+
+
+

Calorie Consumed Calculator

+

Calculates daily calorie consumed based on given inputs.

+ +
+

Calorie Intake Calculator

@@ -552,6 +694,20 @@

Interconverts color codes among RGB, RGBA, HEX (Hexadecimal), HSL, HSV and C

+
+
+

Complement Calculator

+

Calculates the nth complement of a given number in a specified base.

+ +
+

Complex Number Calculator

@@ -678,6 +834,34 @@

Converts the value of one Currency unit into another Currency unit.

+
+
+

Cut Off Calculator

+

Calculates the Engineering / Medical cutoff for students.

+ +
+
+
+
+

DTI Ratio Calculator

+

Calculates your debt-to-income ratio, to help in managing your financial health.

+ +
+

Data Size Calculator

@@ -762,6 +946,20 @@

Converts the Degree into Radian and vice-versa.

+
+
+

Depth Of Field Calculator

+

Calculator that helps photographers determine the depth of field based on some factors.

+ +
+

Differential Calculator

@@ -804,6 +1002,20 @@

Unlock Savings with Precision: Your Ultimate Discount Calculator.

+
+
+

Dora Calculator

+

Calculates the distance whether Dora can view the object.

+ +
+

Download Time Calculator

@@ -1084,6 +1296,20 @@

Calculator which includes a graphical display to visualize functions.

+
+
+

Gravitational Force Calculator

+

Calculates the Gravitational Force between two masses.

+ +
+

Happy Number Calculator

@@ -1126,6 +1352,20 @@

Calculates the heart rate monitors.

+
+
+

Hexadecimal Calculator

+

Performs arithmetic operations on hexadecimal numbers.

+ +
+

Home Renovation Budget Calculator

@@ -1140,6 +1380,48 @@

Calculates total budget for home renovation.

+
+
+

Home Security Cost Calculator

+

Calculates the cost of your home security.

+ +
+
+
+
+

Horsepower Calculator

+

Calculates the horsepower using force and velocity.

+ +
+
+
+
+

Ideal Gas Law Calculator

+

Calculates pressure, volume, temperature, and moles based on other inputs.

+ +
+

Income Tax Calculator

@@ -1182,6 +1464,20 @@

Shows the intelligence using his/her IQ.

+
+
+

Inverse Function Calculator

+

Calculates the inverse of a provided function.

+ +
+

Investment Risk Tolerance Calculator

@@ -1196,6 +1492,20 @@

Calculates the risk in Investment on the basis of some input parameters.

+
+
+

Kaprekar Number Calculator

+

Checks whether the number is Kaprekar Number or not.

+ +
+

LCM Calculator

@@ -1210,6 +1520,20 @@

Calculates LCM of multiple numbers.

+
+
+

Leap Year Calculator

+

Checks whether the entered year is a leap year or not.

+ +
+

Length Calculator

@@ -1350,6 +1674,20 @@

Computes the total atomic weights of elements in a given chemical formula

+
+
+

Momentum Calculator

+

Calculates the momentum of the body using its mass and velocity.

+ +
+

Mortgage Refinance Calculator

@@ -1448,6 +1786,20 @@

Calculates the days remaining until the next birthday.

+
+
+

Niven Number Calculator

+

Checks whether the given number is niven or not.

+ +
+

Number Of Days Calculator

@@ -1476,6 +1828,20 @@

Converts binary to decimal, octal, hexadecimal and vice versa.

+
+
+

Nutrition Calculator

+

Calculates the total nutrition values based on user inputs.

+ +
+

Palindrome Calculator

@@ -1490,6 +1856,20 @@

Checks if an entered number or string is Palindrome or not.

+
+
+

Password Strength Calculator

+

Calculates the strength of the Password.

+ +
+

Percentage Calculator

@@ -1560,6 +1940,20 @@

Calculates a pet's age in human years.

+
+
+

Planetary Motion Calculator

+

Calculates various parameters of planetary motion using Kepler's laws.

+ +
+

Population Density Calculator

@@ -1644,6 +2038,20 @@

Calculates the Probability of different events.

+
+
+

Profit Loss Calculator

+

Calculates the profit or loss in a click.

+ +
+

Projectile Motion Calculator

@@ -1742,6 +2150,20 @@

Calculates the Quotient and Remainder.

+
+
+

ROI Calculator

+

Calculates the return on investment for your invested amount.

+ +
+

RPN Calculator

@@ -1770,6 +2192,34 @@

Generates randomized English alphabets used in brain teaser activities.

+
+
+

Random Number Generator

+

It randomly generates a number.

+ +
+
+
+
+

Random Word Generator Calculator

+

Generates random words based on a specified starting letter and the desired number of words.

+ +
+

Ratio Calculator

@@ -1826,6 +2276,20 @@

Converts Rectangular form into Polar form and vice versa.

+
+
+

Retirement Calculator

+

Predicts the user retirement savings growth.

+ +
+

Roman Numeral Calculator

@@ -1840,6 +2304,34 @@

Converts Roman Numeral form into Decimal form.

+
+
+

Running Pace Calculator

+

Calculate the running Pace/Time/Distance in your desired units.

+ +
+
+
+
+

Salary Estimation Calculator

+

Estimates the expected salary based on some parameters.

+ +
+

Salary To Hourly Calculator

@@ -1868,6 +2360,34 @@

Calculates the total amount we can save over a specified period by making mo

+
+
+

Sentence Counter Calculator

+

Counts the number of sentences in a given text.

+ +
+
+
+
+

Shoe Size Calculator

+

Calculator that helps to find the perfect shoe size.

+ +
+

Short URL Calculator

@@ -1882,6 +2402,20 @@

Calculates the Short URL from Long URL.

+
+
+

Shortest Path Calculator

+

Calculates the shortest path between the two nodes.

+ +
+

Simple Interest Calculator

@@ -1910,6 +2444,34 @@

Calculates the amount of sleep required based on age and activity level.

+
+
+

Sleep Cycle Calculator

+

Calculates optimal bedtimes based on desired wake-up time and the scientific 90-min sleep cycles.

+ +
+
+
+
+

Slope Calculator

+

Calculates the slope of the line.

+ +
+

Smith Number Calculator

@@ -2092,6 +2654,20 @@

Calculates Hours, Minutes, Seconds for any entered time.

+
+
+

Time Complexity Calculator

+

Calculates the time complexity of given programs by the user.

+ +
+

Time Zone Calculator

@@ -2120,6 +2696,20 @@

Calculates the tip amount and final amount based on tip percentage and amoun

+
+
+

Torque Calculator

+

Calculates the torque based on force, distance, and angle entered.

+ +
+

Triangle Calculator

@@ -2162,6 +2752,20 @@

Provides the graph as per the given function like sin, cos, tan, etc.

+
+
+

Twin Prime Number Calculator

+

Calculates the pair of prime numbers that have a difference of 2.

+ +
+

Typing Speed Calculator

@@ -2204,6 +2808,20 @@

Calculates the resultant vector, dot product and angle between 2 vectors.

+
+
+

Velocity Acceleration Calculator

+

Calculates the velocity and acceleration by taking distance and time.

+ +
+

Vowel Consonant Calculator

@@ -2232,6 +2850,20 @@

Calculate daily water intake based on weight, activity, and weather.

+
+
+

Water TDS Calculator

+

Calculates the TDS of the given water sample.

+ +
+

Weather Calculator

@@ -2263,7 +2895,7 @@

Calculates the bandwidth of a website based on some factors.

Weight Calculator

-

Calculates weight from kgs to pounds and vice-versa.

+

Calculates the weight between different units.

+ +




+

No results found 🙃

+
- 🠕 +
+ @@ -2343,4 +2980,4 @@

Calculates the linear density of the yarn from unit system to another.

- + \ No newline at end of file