There should be an IPV4 function that can be used in formulas, which returns random IPv4 addresses in a given range.
The function should take two optional arguments:
With no args, generate four random numbers between 0 and 255 (inclusive) and join on ..
e.g. IPV4() or IPV4 => "3.10.5.127", "124.42.99.0", etc.
With only one arg, expect this to be a valid IP address, but with "*" representing a wildcard value, which should be randomly filled in.
e.g. IPV4("192.168.1.*") => "192.168.1.42", "192.168.1.0", "192.168.1.255", etc.
With two args, both must be valid IP addresses without wildcards. The randomly generated addresses must lie between these two (start inclusive, end exclusive).
e.g. IPV4("10.0.0.0", "10.0.5.0") => "10.0.0.1", "10.0.2.42", "10.0.4.255"
There should be an
IPV4
function that can be used in formulas, which returns random IPv4 addresses in a given range.The function should take two optional arguments:
.
.IPV4()
orIPV4
=>"3.10.5.127"
,"124.42.99.0"
, etc.IPV4("192.168.1.*")
=>"192.168.1.42"
,"192.168.1.0"
,"192.168.1.255"
, etc.IPV4("10.0.0.0", "10.0.5.0")
=>"10.0.0.1"
,"10.0.2.42"
,"10.0.4.255"