How to get an Interface's current Rx speed in script?

Will you also help me with this one?
http://forum.mikrotik.com/t/how-to-get-a-random-mac-address-in-script/56296/1
thanks a lot :smiley: