This commit is contained in:
Raven Scott 2024-09-19 01:10:33 -04:00
parent eb50ed4a11
commit fd20b088e4

View File

@ -237,7 +237,7 @@ Additionally, the script incorporates MySQL (`mysql2`) to interact with a databa
#### Handling Randomness Network Selection #### Handling Randomness Network Selection
The script uses a helper function `randomIntFromInterval` to generate random integers within a specified range. This randomness plays a critical role in assigning ports (`rand1`, `rand2`) and selecting a random network from a predefined list (`networkNames`). These random values help in dynamically configuring Docker containers and ensuring that no two containers accidentally use the same ports or networks. The script uses a helper function `randomIntFromInterval` to generate random integers within a specified range. This randomness plays a critical role in selecting a random network from a predefined list (`networkNames`). These random values help in dynamically configuring Docker containers and ensuring that no two containers accidentally use the same ports or networks.
```javascript ```javascript
function randomIntFromInterval(min, max) { function randomIntFromInterval(min, max) {