Cool script--it has some useful features like generating a random MAC. But it's also possible to set your mac with:
sudo ifconfig [device] [mac]
...and one can replace [mac] with `openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'` for a random address.