Javascript Randomly Select From Array Python Size Of Set In Cpp