[backport] fix #12418, fix `random.randomize` on JS backend (#12432)
[backport] fix #12418, fix `random.randomize` on JS backend (#12432)


dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim