Random Address Sampler
Sample addresses within supplied ranges.
Random Address Sampler: inputs and results
Enter an IP address, CIDR prefix, or range. Then check its first and last address below.
Calculated Boundaries & ParametersReady
Key Capabilities
- •100% Client-Side: Zero telemetry or server latency.
- •RFC Compliant: Exact 32-bit and 128-bit integer precision.
- •Quick Copy: Instant access to CIDR, mask, and range bounds.
- •Cross-Platform: Works on desktop, tablet, and mobile browsers.
Related Diagnostics, Generators & UtilitiesAll Tools
IPv4 Reverse DNS Name Generator
Generate address-level reverse lookup names.
Reverse DNS Zone Planner
Identify applicable reverse delegation boundaries.
Bounded IP Address List Generator
Enumerate a selected, limited address range.
Batch Subnet Calculator
Calculate details for multiple prefixes.
IP List Deduplicator
Remove repeated addresses.
IP Address Sorter
Sort addresses numerically.
How Random Address Sampler Works?
The Random Address Sampler works by drawing random integer offsets inside each supplied range and converting each offset into an address, with every address in the range equally likely.
Enter the ranges
Type 1 or more ranges or prefixes, such as
10.0.0.0/16.Set the sample size
Choose how many addresses to draw, such as 10.
Draw offsets
Each draw picks a random integer from 0 to size − 1. Multiple ranges are weighted by size.
Output the sample
The sampler prints the addresses, with an option to avoid repeats.
Random Address Sampler Formula
The Random Address Sampler formula is Address = Start + floor(r × Size), where r is a uniform random number in [0, 1).
Single draw
A = S + floor(r × N)N = range size.
Range weight
P(range_i) = N_i ÷ Σ NLarger ranges receive more draws.
Without repeats
max sample = Σ NSampling stops when the pool is empty.
Seeded runs
same seed → same sampleReproducible test data.
Worked example: 1 draw from 10.0.0.0/16
Size = 65,536 r = 0.4321 → offset = floor(0.4321 × 65,536) = 28,317 28,317 = 110 × 256 + 157 Address = 10.0.110.157
Random Address Sampler Conversion Table
The Random Address Sampler conversion table shows a seeded sample of 10 addresses drawn from 10.0.0.0/16, with the offset of each address.
| # | Sampled Address | Offset in Range |
|---|---|---|
| 1 | 10.0.149.18 | 38,162 |
| 2 | 10.0.133.18 | 34,066 |
| 3 | 10.0.234.57 | 59,961 |
| 4 | 10.0.178.223 | 45,791 |
| 5 | 10.0.192.201 | 49,353 |
| 6 | 10.0.176.126 | 45,182 |
| 7 | 10.0.133.103 | 34,151 |
| 8 | 10.0.38.221 | 9,949 |
| 9 | 10.0.12.143 | 3,215 |
| 10 | 10.0.57.239 | 14,831 |
What is Random Address Sampler?
The Random Address Sampler is a tool that picks random IP addresses from supplied ranges, with every address equally likely to be chosen.
Sampling gives a fair subset of a large address space. Testing 20 random addresses from a /16 gives a quick view of firewall or routing behavior across the whole block without enumerating 65,536 addresses.
Seeded sampling produces the same addresses on every run, which keeps test results reproducible.
What are the uses of Random Address Sampler?
There are 4 main uses of the Random Address Sampler, including spot-check testing, load test data, and audit sampling.
Spot-checking firewall rules
Random addresses from an allowed range are tested against the rule base.
Generating load test traffic
Load tests use random source addresses to spread connections across a range.
Sampling for audits
Auditors pick random addresses to compare IPAM records with live devices.
Creating anonymized examples
Documentation uses random addresses from 192.0.2.0/24 instead of real hosts.