From old forum "/castrandom" not working as expected since patch - #26 by Anaisha-argent-dawn
If you just want the ID of a specific mount, below code would work:
/run local mount = "Grand Armored Gryphon";for i,v in pairs(C_MountJournal.GetMountIDs()) do local n = C_MountJournal.GetMountInfoByID(v);if(n == mount) then print(mount.." ID is "..v);return; end end
just change “Grand Armored Gryphon” at the beginning to the mount you want.