To create random modifier on IP address or MAC address for streamblock in HLTAPI, you must set -ip_src_mode and -mac_src_mode to random respectively
Note:Same can be created for Destination IP and Destinamtion MAC addresses.
Please find the script attached.