----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
--------------------------------------------=##-----------------------------------------------------
--------------------------------------------##%-----------------------------------------------------
-------------------------------------##----*###-----------------------------------------------------
------------------------------------###---+#*##-------+%#-------------------------------------------
-----------------------------------+###=-*#++#%----+#####---------------+#%###----------------------
----------------------------------*%+*%+##++*##--*###*-#+----------+########%=----------------------
---------------------------------+%*+*###+=**#+*##*#*=-#+-------=###*###*++#*-----------------------
--------------------------------+######*==**####+##++=-##-----+##+*###*++++#+-----------------------
--------------------------=+*#%##*=+##+=+**###**##+++=-*#=--=##+*##**++++++#+-----------------------
-----------------------+###*=====+++##=+**###**##*++++--%*-+%#+###*+++++++=#+-----------------------
---------------------##*===++++++++++##%%%##*+##*++++++--###*+##**+++++++*+#%%%%%%#*==--------------
-------------------+#*==++++++++++++++++++++++##+++++++++-##*##*++++#####*====+++*####%##%----------
------------------*#+=++++++++++++++++++++++++*##++++++++**##%*+####+=+++*###%###***+###=-----------
---------------*###++++*###*++++++++++++++++++++******##%#######*++++*####***++++++*##=-------------
------------=##*++++++*#.=%#*+++++++++++++++=+++++*###**+#####+++*####***++++++++++#*---------------
-----------*#*=++++++++###=#*++++++++++++++++++*##***++=####+++*######*++++++++++=#*----------------
----------+%++++**++++++*#*++++++++++++++++++++%#*+++++=##++*###*******####*++++=+#=----------------
----------%#=+*#*+++++++++++++++++++++++++=++++##+++++++##*###**++++++++++++*##+-*#-----------------
----------##+++++++++++++++++++++++++++++++++++++#####*+####*++++++++++++++++++*#%#=----------------
----------##+++++++++++++++++++++++++++++++++##******%#####***#####+++++++++++-+###+----------------
----------=%#+++*#####*+++#**++++++++++++++++*##++*%#****++++++++***##*+++++*#%+=-------------------
-----------+#*+####**##*##*+++++++++++++++*###%####****+++++++++++*###%%*+*#*=----------------------
------------#####**+**##**+++++++++++++++*++++++*#*++++**####*+**+=+++=+###=---+#*------------------
-------------*####***+++++++++++++****++=++++++++++++++++++++**++++++++++*%##*####=-----------------
----------------+##******++++****####-...+++++++++++++++++++*+++++++++++++#*===+*#*-----------------
------------------+#%###*****####=-#*--..+++++++++++++++++++++++++++++++++##+++*#%=-----------------
---------------------==+###*==-----#*---.-+++++++++++++++++++++++++++++++##***###=------------------
-----------------------------------##----:=+++*+++++++++++++++++++++++++#######=--------------------
----------------------------------####----+#*+++++++++++++**++++++++++*##=--------------------------
---------------------------------%#**##+=##*++++++++++++*#*+++++++++++**###=------------------------
--------------------------------*#****####++++**##******#*++++++++++++++**##------------------------
--------------------------------+#####%##*+***##-------=%*++++++++++++++**##------------------------
---------------------------------------%#######%#########*+++++++++++++*##*-------------------------
---------------------------------------=+*#%##------====###****###*++**##=--------------------------
---------------------------------------------------------+##%####****##*----------------------------
-------------------------------------------------------------=#%##*##*------------------------------
---------------------------------------------------------------####*--------------------------------
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
npm : 10.2.4
nvm : 0.39.7
$ npm i seull
발표자 랜덤 출력
$ seull 김민성 타이거우즈 빌게이츠
index.js
const args = process.argv.slice(2);
<< slice(2)을 통해process.argv에 기본적으로 들어가있는 node command의 full path 과 실행된 파일의 full path 를 제외한다
var random = Math.floor(Math.random()*args.length);
<< random 함수를 통해 내가 입력한 값의 랜덤한 값을 얻는다
console.log("발표자 : " + args[random]);
<< 출력