Based on the IP address and subnet mask input from the user, the following values are calculated:
#1. Network address
#2. Broadcast address
#3. Number of valid hosts
#4. Wildcard mask
#5. Number of mask bits (CIDR notation)
#6. Random IP addresses from the subnet.