feat: add random number and port generators with customizable options and validations

This commit is contained in:
AshAnand34 2025-07-19 23:06:44 -07:00
commit 1734b4dff4
12 changed files with 1653 additions and 0 deletions

View file

@ -93,5 +93,100 @@
"longDescription": "This calculator helps determine the voltage drop and power loss in a two-conductor electrical cable. It takes into account the cable length, wire gauge (cross-sectional area), material resistivity, and current flow. The tool calculates the round-trip voltage drop, total resistance of the cable, and the power dissipated as heat. This is particularly useful for electrical engineers, electricians, and hobbyists when designing electrical systems to ensure voltage levels remain within acceptable limits at the load.",
"shortDescription": "Calculate voltage drop and power loss in electrical cables based on length, material, and current",
"title": "Round trip voltage drop in cable"
},
"randomNumberGenerator": {
"title": "Random Number Generator",
"description": "Generate random numbers within a specified range with customizable options.",
"shortDescription": "Generate random numbers in custom ranges",
"longDescription": "Generate random numbers within a specified range with options for integers or decimals, allowing or preventing duplicates, and sorting results. Perfect for simulations, testing, games, and statistical analysis.",
"options": {
"range": {
"title": "Range Settings",
"minDescription": "Minimum value (inclusive)",
"maxDescription": "Maximum value (inclusive)"
},
"generation": {
"title": "Generation Options",
"countDescription": "Number of random numbers to generate (1-10,000)",
"allowDecimals": {
"title": "Allow Decimal Numbers",
"description": "Generate decimal numbers instead of integers"
},
"allowDuplicates": {
"title": "Allow Duplicates",
"description": "Allow the same number to appear multiple times"
},
"sortResults": {
"title": "Sort Results",
"description": "Sort the generated numbers in ascending order"
}
},
"output": {
"title": "Output Settings",
"separatorDescription": "Character(s) to separate the generated numbers"
}
},
"result": {
"title": "Generated Random Numbers",
"range": "Range",
"count": "Count",
"hasDuplicates": "Contains Duplicates",
"isSorted": "Sorted"
},
"error": {
"generationFailed": "Failed to generate random numbers. Please check your input parameters."
},
"info": {
"title": "What is a Random Number Generator?",
"description": "A random number generator creates unpredictable numbers within a specified range. This tool uses cryptographically secure random number generation to ensure truly random results. Useful for simulations, games, statistical sampling, and testing scenarios."
}
},
"randomPortGenerator": {
"title": "Random Port Generator",
"description": "Generate random network ports within specified ranges with customizable options.",
"shortDescription": "Generate random network ports",
"longDescription": "Generate random network ports within specified ranges (well-known, registered, dynamic, or custom). Perfect for development, testing, and network configuration. Includes port service identification for common ports.",
"options": {
"range": {
"title": "Port Range Settings",
"wellKnown": "Well-Known Ports (1-1023)",
"registered": "Registered Ports (1024-49151)",
"dynamic": "Dynamic Ports (49152-65535)",
"custom": "Custom Range",
"minPortDescription": "Minimum port number (1-65535)",
"maxPortDescription": "Maximum port number (1-65535)"
},
"generation": {
"title": "Generation Options",
"countDescription": "Number of random ports to generate (1-1,000)",
"allowDuplicates": {
"title": "Allow Duplicates",
"description": "Allow the same port to appear multiple times"
},
"sortResults": {
"title": "Sort Results",
"description": "Sort the generated ports in ascending order"
}
},
"output": {
"title": "Output Settings",
"separatorDescription": "Character(s) to separate the generated ports"
}
},
"result": {
"title": "Generated Random Ports",
"range": "Port Range",
"count": "Count",
"hasDuplicates": "Contains Duplicates",
"isSorted": "Sorted",
"portDetails": "Port Details"
},
"error": {
"generationFailed": "Failed to generate random ports. Please check your input parameters."
},
"info": {
"title": "What is a Random Port Generator?",
"description": "A random port generator creates unpredictable network port numbers within specified ranges. This tool follows IANA port number standards and includes identification of common services. Useful for development, testing, network configuration, and avoiding port conflicts."
}
}
}