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