Skip to content
Advertisement

axios random url picking

I just wonder how to pick random URLs to performed an axios post request.

I have three servers I want to pick randomly from

JavaScript

currently is using only one:

JavaScript

I just want to choose random port from

Advertisement

Answer

Example of a solution via an array

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement