Js Select Random Value From Array Initialization In Cpp