[Bug 814659,814663,814664] Replace math.random with uuid [r=arcturus]
Merge pull request #7821 from EverythingMe/remove-math-random

[Bug 814659,814663,814664] Replace math.random with uuid [r=arcturus]