If you are connected to a public Wifi and you want to change your MAC address to bypass 30 Minutes free sessions or for privacy, you can easily generate a random mac address every time.
sudo vi /etc/NetworkManager/conf.d/macchange.conf
Inside write the following lines:
#[device]
wifi.scan-rand-mac-address=yes
#[connection]
wifi.cloned-mac-address=random
Just comment the lines with:
#wifi.scan-rand-mac-address=yes
#wifi.cloned-mac-address=random