[SPARK-16961][FOLLOW-UP][SPARKR] More robust test case for spark.gaussianMixture.
[SPARK-16961][FOLLOW-UP][SPARKR] More robust test case for spark.gaussianMixture.

## What changes were proposed in this pull request?
#14551 fixed off-by-one bug in ```randomizeInPlace``` and some test failure caused by this fix.
But for SparkR ```spark.gaussianMixture``` test case, the fix is inappropriate. It only changed the output result of native R which should be compared by SparkR, however, it did not change the R code in annotation which is used for reproducing the result in native R. It will confuse users who can not reproduce the same result in native R. This PR sends a more robust test case which can produce same result between SparkR and native R.

## How was this patch tested?
Unit test update.

Author: Yanbo Liang <ybliang8@gmail.com>

Closes #14730 from yanboliang/spark-16961-followup.

minixalpha/spark,markhamstra/spark,Aegeaner/spark,spark-test/spark,patrick-nicholson/spark,brad-kaiser/spark,actuaryzhang/spark,zhouyejoe/spark,michalsenkyr/spark,icexelloss/spark,shaneknapp/spark,alunarbeach/spark,ericvandenbergfb/spark,kevinyu98/spark,liutang123/spark,adrian-ionescu/apache-spark,jkbradley/spark,aray/spark,cloud-fan/spark,nilsgrabbert/spark,andrewor14/spark,big-pegasus/spark,eyalfa/spark,map222/spark,witgo/spark,hhbyyh/spark,srowen/spark,adrian-ionescu/apache-spark,panfengfeng/spark,lxsmnv/spark,kiszk/spark,bdrillard/spark,rikima/spark,SHASHANKB/spark,rikima/spark,lxsmnv/spark,yanboliang/spark,icexelloss/spark,liyichao/spark,jkbradley/spark,aokolnychyi/spark,metamx/spark,markhamstra/spark,kevinyu98/spark,sahilTakiar/spark,taroplus/spark,witgo/spark,skonto/spark,patrick-nicholson/spark,vinodkc/spark,darionyaphet/spark,rezasafi/spark,caneGuy/spark,WeichenXu123/spark,joseph-torres/spark,jianran/spark,szhem/spark,akopich/spark,ddna1021/spark,cin/spark,srowen/spark,liyichao/spark,holdenk/spark,WindCanDie/spark,HyukjinKwon/spark,publicRoman/spark,eyalfa/spark,xflin/spark,kiszk/spark,holdenk/spark,debugger87/spark,bOOm-X/spark,hvanhovell/spark,tejasapatil/spark,kimoonkim/spark,goldmedal/spark,jrshust/spark,andrewor14/spark,jlopezmalla/spark,jianran/spark,bOOm-X/spark,kimoonkim/spark,narahari92/spark,dbtsai/spark,kissmetrics/spark,joseph-torres/spark,xflin/spark,jianran/spark,publicRoman/spark,taroplus/spark,icexelloss/spark,chuckchen/spark,gengliangwang/spark,mzl9039/spark,wangyum/spark,saturday-shi/spark,bdrillard/spark,mzl9039/spark,SHASHANKB/spark,mahak/spark,lvdongr/spark,JoshRosen/spark,zero323/spark,saltstar/spark,yanboliang/spark,huang1900/spark,huang1900/spark,kiszk/spark,milliman/spark,SnappyDataInc/spark,xuanyuanking/spark,lvdongr/spark,shubhamchopra/spark,kiszk/spark,dongjoon-hyun/spark,publicRoman/spark,ddna1021/spark,liyichao/spark,metamx/spark,gengliangwang/spark,zuotingbing/spark,tengpeng/spark,stanzhai/spark,poffuomo/spark,apache/spark,cloud-fan/spark,szhem/spark,ericvandenbergfb/spark,facaiy/spark,mdespriee/spark,jrshust/spark,cin/spark,mdespriee/spark,minixalpha/spark,publicRoman/spark,witgo/spark,apache-spark-on-k8s/spark,kimoonkim/spark,setjet/spark,ajaysaini725/spark,ron8hu/spark,mike0sv/spark,wangmiao1981/spark,bravo-zhang/spark,mike0sv/spark,zuotingbing/spark,patrick-nicholson/spark,stanzhai/spark,szhem/spark,lxsmnv/spark,sahilTakiar/spark,SnappyDataInc/spark,nilsgrabbert/spark,skonto/spark,hvanhovell/spark,Aegeaner/spark,loneknightpy/spark,liutang123/spark,jlopezmalla/spark,akopich/spark,rikima/spark,michalsenkyr/spark,JoshRosen/spark,xflin/spark,esi-mineset/spark,jrshust/spark,aosagie/spark,ptkool/spark,HyukjinKwon/spark,rednaxelafx/apache-spark,shaneknapp/spark,yanboliang/spark,gengliangwang/spark,byakuinss/spark,sureshthalamati/spark,szhem/spark,ahnqirage/spark,HyukjinKwon/spark,Aegeaner/spark,dbtsai/spark,BryanCutler/spark,ueshin/apache-spark,SHASHANKB/spark,byakuinss/spark,WindCanDie/spark,huang1900/spark,someorz/spark,publicRoman/spark,jkbradley/spark,LantaoJin/spark,ibm-research-ireland/sparkoscope,nlalevee/spark,shubhamchopra/spark,ptkool/spark,jrshust/spark,jiangxb1987/spark,shaneknapp/spark,ueshin/apache-spark,icexelloss/spark,patrick-nicholson/spark,spark-test/spark,apache-spark-on-k8s/spark,JerryLead/spark,markhamstra/spark,guoxiaolongzte/spark,1haodian/spark,1haodian/spark,ConeyLiu/spark,cloud-fan/spark,jianran/spark,ajaysaini725/spark,wzhfy/spark,WeichenXu123/spark,caneGuy/spark,actuaryzhang/spark,JerryLead/spark,ericvandenbergfb/spark,patrick-nicholson/spark,cin/spark,maropu/spark,esi-mineset/spark,panfengfeng/spark,andrewor14/spark,facaiy/spark,ddna1021/spark,hhbyyh/spark,zuotingbing/spark,yanboliang/spark,map222/spark,wzhfy/spark,milliman/spark,nlalevee/spark,wangmiao1981/spark,kimoonkim/spark,alunarbeach/spark,huang1900/spark,kiszk/spark,cloud-fan/spark,alunarbeach/spark,HyukjinKwon/spark,esi-mineset/spark,tengpeng/spark,poffuomo/spark,panfengfeng/spark,maropu/spark,dongjoon-hyun/spark,map222/spark,bdrillard/spark,facaiy/spark,joseph-torres/spark,adrian-ionescu/apache-spark,xuanyuanking/spark,ibm-research-ireland/sparkoscope,liyichao/spark,mzl9039/spark,jrshust/spark,ron8hu/spark,eyalfa/spark,dongjoon-hyun/spark,kevinyu98/spark,akopich/spark,kiszk/spark,narahari92/spark,ron8hu/spark,cin/spark,kissmetrics/spark,cin/spark,mdespriee/spark,BryanCutler/spark,UndeadBaneGitHub/spark,apache-spark-on-k8s/spark,jlopezmalla/spark,ibm-research-ireland/sparkoscope,1haodian/spark,shuangshuangwang/spark,lvdongr/spark,goldmedal/spark,spark-test/spark,tejasapatil/spark,wzhfy/spark,wangmiao1981/spark,Panos-Bletsos/spark-cost-model-optimizer,shaneknapp/spark,dhruve/spark,akopich/spark,adrian-ionescu/apache-spark,WindCanDie/spark,big-pegasus/spark,holdenk/spark,ConeyLiu/spark,big-pegasus/spark,Panos-Bletsos/spark-cost-model-optimizer,tengpeng/spark,SnappyDataInc/spark,JerryLead/spark,alunarbeach/spark,aray/spark,ron8hu/spark,nchammas/spark,chuckchen/spark,ajaysaini725/spark,LantaoJin/spark,rezasafi/spark,zzcclp/spark,ioana-delaney/spark,ddna1021/spark,stanzhai/spark,ajaysaini725/spark,WeichenXu123/spark,saltstar/spark,Panos-Bletsos/spark-cost-model-optimizer,jrshust/spark,rikima/spark,jkbradley/spark,tejasapatil/spark,maropu/spark,spark-test/spark,jkbradley/spark,kissmetrics/spark,apache/spark,setjet/spark,UndeadBaneGitHub/spark,joseph-torres/spark,sahilTakiar/spark,stanzhai/spark,bdrillard/spark,jiangxb1987/spark,mahak/spark,saltstar/spark,michalsenkyr/spark,apache-spark-on-k8s/spark,ueshin/apache-spark,chuckchen/spark,poffuomo/spark,nchammas/spark,Aegeaner/spark,dhruve/spark,UndeadBaneGitHub/spark,ibm-research-ireland/sparkoscope,zzcclp/spark,ConeyLiu/spark,dhruve/spark,big-pegasus/spark,facaiy/spark,JoshRosen/spark,spark-test/spark,MLnick/spark,HyukjinKwon/spark,map222/spark,wangyum/spark,ericvandenbergfb/spark,mzl9039/spark,shubhamchopra/spark,someorz/spark,darionyaphet/spark,wangyum/spark,loneknightpy/spark,JerryLead/spark,mahak/spark,LantaoJin/spark,ahnqirage/spark,sureshthalamati/spark,highfei2011/spark,xflin/spark,shubhamchopra/spark,brad-kaiser/spark,ddna1021/spark,bravo-zhang/spark,apache-spark-on-k8s/spark,zzcclp/spark,mzl9039/spark,saltstar/spark,MLnick/spark,rikima/spark,SHASHANKB/spark,patrick-nicholson/spark,apache/spark,guoxiaolongzte/spark,liyichao/spark,spark-test/spark,wangyum/spark,cloud-fan/spark,rekhajoshm/spark,vinodkc/spark,highfei2011/spark,nchammas/spark,taroplus/spark,bdrillard/spark,zero323/spark,mzl9039/spark,debugger87/spark,jiangxb1987/spark,ioana-delaney/spark,techaddict/spark,goldmedal/spark,saturday-shi/spark,narahari92/spark,mike0sv/spark,taroplus/spark,zzcclp/spark,WindCanDie/spark,lvdongr/spark,mike0sv/spark,ueshin/apache-spark,sureshthalamati/spark,sachintyagi22/spark,jiangxb1987/spark,nlalevee/spark,shubhamchopra/spark,witgo/spark,michalsenkyr/spark,HyukjinKwon/spark,UndeadBaneGitHub/spark,pgandhi999/spark,WindCanDie/spark,gengliangwang/spark,zero323/spark,cloud-fan/spark,matthewfranglen/spark,stanzhai/spark,aray/spark,aray/spark,andrewor14/spark,janewangfb/spark,mdespriee/spark,zuotingbing/spark,ibm-research-ireland/sparkoscope,bOOm-X/spark,milliman/spark,xuanyuanking/spark,bOOm-X/spark,ioana-delaney/spark,metamx/spark,bOOm-X/spark,nilsgrabbert/spark,ptkool/spark,rednaxelafx/apache-spark,srowen/spark,cloud-fan/spark,skonto/spark,ron8hu/spark,byakuinss/spark,rezasafi/spark,holdenk/spark,ConeyLiu/spark,bravo-zhang/spark,ericvandenbergfb/spark,mdespriee/spark,JerryLead/spark,goldmedal/spark,nchammas/spark,pgandhi999/spark,zero323/spark,xuanyuanking/spark,Aegeaner/spark,eyalfa/spark,loneknightpy/spark,sureshthalamati/spark,zzcclp/spark,skonto/spark,someorz/spark,aosagie/spark,JerryLead/spark,kevinyu98/spark,rednaxelafx/apache-spark,UndeadBaneGitHub/spark,michalsenkyr/spark,hvanhovell/spark,bOOm-X/spark,kimoonkim/spark,hhbyyh/spark,rekhajoshm/spark,HyukjinKwon/spark,poffuomo/spark,chuckchen/spark,kevinyu98/spark,goldmedal/spark,aokolnychyi/spark,kissmetrics/spark,sachintyagi22/spark,LantaoJin/spark,jrshust/spark,facaiy/spark,hhbyyh/spark,akopich/spark,xflin/spark,szhem/spark,joseph-torres/spark,SnappyDataInc/spark,apache-spark-on-k8s/spark,map222/spark,xflin/spark,MLnick/spark,ron8hu/spark,techaddict/spark,joseph-torres/spark,setjet/spark,minixalpha/spark,nilsgrabbert/spark,saturday-shi/spark,debugger87/spark,liutang123/spark,vinodkc/spark,darionyaphet/spark,wangyum/spark,aosagie/spark,publicRoman/spark,szhem/spark,rednaxelafx/apache-spark,wzhfy/spark,tengpeng/spark,ioana-delaney/spark,lxsmnv/spark,zuotingbing/spark,apache/spark,ptkool/spark,witgo/spark,janewangfb/spark,map222/spark,ptkool/spark,caneGuy/spark,WeichenXu123/spark,panfengfeng/spark,darionyaphet/spark,kevinyu98/spark,nilsgrabbert/spark,metamx/spark,techaddict/spark,zzcclp/spark,hvanhovell/spark,bravo-zhang/spark,skonto/spark,techaddict/spark,vinodkc/spark,jianran/spark,pgandhi999/spark,liutang123/spark,jlopezmalla/spark,patrick-nicholson/spark,pgandhi999/spark,aosagie/spark,rekhajoshm/spark,gengliangwang/spark,zero323/spark,brad-kaiser/spark,maropu/spark,WindCanDie/spark,taroplus/spark,ioana-delaney/spark,rezasafi/spark,zero323/spark,ericvandenbergfb/spark,poffuomo/spark,darionyaphet/spark,saltstar/spark,setjet/spark,kimoonkim/spark,1haodian/spark,byakuinss/spark,guoxiaolongzte/spark,bdrillard/spark,techaddict/spark,markhamstra/spark,rekhajoshm/spark,vinodkc/spark,sureshthalamati/spark,zhouyejoe/spark,1haodian/spark,lvdongr/spark,adrian-ionescu/apache-spark,pgandhi999/spark,mahak/spark,wangyum/spark,nlalevee/spark,caneGuy/spark,sahilTakiar/spark,hvanhovell/spark,jlopezmalla/spark,dhruve/spark,markhamstra/spark,nilsgrabbert/spark,maropu/spark,BryanCutler/spark,wangmiao1981/spark,jkbradley/spark,rezasafi/spark,setjet/spark,holdenk/spark,caneGuy/spark,saturday-shi/spark,hvanhovell/spark,ueshin/apache-spark,sahilTakiar/spark,dhruve/spark,kiszk/spark,witgo/spark,BryanCutler/spark,sahilTakiar/spark,aokolnychyi/spark,bdrillard/spark,wzhfy/spark,metamx/spark,sachintyagi22/spark,ibm-research-ireland/sparkoscope,ddna1021/spark,1haodian/spark,byakuinss/spark,dbtsai/spark,jkbradley/spark,wzhfy/spark,dbtsai/spark,aray/spark,sureshthalamati/spark,narahari92/spark,vinodkc/spark,brad-kaiser/spark,nlalevee/spark,ddna1021/spark,highfei2011/spark,nilsgrabbert/spark,JoshRosen/spark,tejasapatil/spark,wzhfy/spark,Aegeaner/spark,stanzhai/spark,rednaxelafx/apache-spark,tejasapatil/spark,UndeadBaneGitHub/spark,WeichenXu123/spark,ptkool/spark,darionyaphet/spark,poffuomo/spark,maropu/spark,markhamstra/spark,liyichao/spark,MLnick/spark,dongjoon-hyun/spark,mike0sv/spark,mahak/spark,big-pegasus/spark,jianran/spark,esi-mineset/spark,chuckchen/spark,highfei2011/spark,LantaoJin/spark,minixalpha/spark,esi-mineset/spark,ioana-delaney/spark,sachintyagi22/spark,jlopezmalla/spark,guoxiaolongzte/spark,ahnqirage/spark,someorz/spark,huang1900/spark,bravo-zhang/spark,alunarbeach/spark,shaneknapp/spark,liutang123/spark,shuangshuangwang/spark,aosagie/spark,skonto/spark,dhruve/spark,aray/spark,michalsenkyr/spark,eyalfa/spark,milliman/spark,jiangxb1987/spark,ron8hu/spark,actuaryzhang/spark,holdenk/spark,wangmiao1981/spark,caneGuy/spark,actuaryzhang/spark,akopich/spark,Aegeaner/spark,aokolnychyi/spark,SnappyDataInc/spark,panfengfeng/spark,liutang123/spark,tejasapatil/spark,loneknightpy/spark,actuaryzhang/spark,apache/spark,holdenk/spark,taroplus/spark,zhouyejoe/spark,loneknightpy/spark,akopich/spark,saturday-shi/spark,zhouyejoe/spark,xuanyuanking/spark,milliman/spark,someorz/spark,dbtsai/spark,rikima/spark,bOOm-X/spark,dongjoon-hyun/spark,rikima/spark,icexelloss/spark,witgo/spark,tejasapatil/spark,cin/spark,wangmiao1981/spark,brad-kaiser/spark,srowen/spark,WeichenXu123/spark,UndeadBaneGitHub/spark,apache-spark-on-k8s/spark,lvdongr/spark,rekhajoshm/spark,MLnick/spark,rednaxelafx/apache-spark,nchammas/spark,mzl9039/spark,gengliangwang/spark,WindCanDie/spark,ahnqirage/spark,loneknightpy/spark,debugger87/spark,MLnick/spark,byakuinss/spark,janewangfb/spark,zzcclp/spark,poffuomo/spark,kevinyu98/spark,shuangshuangwang/spark,tengpeng/spark,stanzhai/spark,guoxiaolongzte/spark,gengliangwang/spark,michalsenkyr/spark,lxsmnv/spark,markhamstra/spark,dongjoon-hyun/spark,Panos-Bletsos/spark-cost-model-optimizer,bravo-zhang/spark,mdespriee/spark,nlalevee/spark,lxsmnv/spark,hhbyyh/spark,apache/spark,actuaryzhang/spark,pgandhi999/spark,ioana-delaney/spark,zhouyejoe/spark,facaiy/spark,ConeyLiu/spark,techaddict/spark,zhouyejoe/spark,shubhamchopra/spark,MLnick/spark,SnappyDataInc/spark,skonto/spark,yanboliang/spark,ueshin/apache-spark,alunarbeach/spark,janewangfb/spark,mdespriee/spark,zuotingbing/spark,rekhajoshm/spark,WeichenXu123/spark,esi-mineset/spark,andrewor14/spark,yanboliang/spark,kimoonkim/spark,rezasafi/spark,saturday-shi/spark,sachintyagi22/spark,dhruve/spark,minixalpha/spark,someorz/spark,SHASHANKB/spark,panfengfeng/spark,adrian-ionescu/apache-spark,shaneknapp/spark,chuckchen/spark,SHASHANKB/spark,ConeyLiu/spark,JoshRosen/spark,debugger87/spark,tengpeng/spark,esi-mineset/spark,lxsmnv/spark,dbtsai/spark,ahnqirage/spark,ibm-research-ireland/sparkoscope,xuanyuanking/spark,zuotingbing/spark,milliman/spark,bravo-zhang/spark,panfengfeng/spark,sahilTakiar/spark,sachintyagi22/spark,byakuinss/spark,adrian-ionescu/apache-spark,techaddict/spark,huang1900/spark,hvanhovell/spark,setjet/spark,jlopezmalla/spark,jiangxb1987/spark,andrewor14/spark,huang1900/spark,saltstar/spark,SHASHANKB/spark,icexelloss/spark,big-pegasus/spark,BryanCutler/spark,nlalevee/spark,milliman/spark,jiangxb1987/spark,janewangfb/spark,shuangshuangwang/spark,facaiy/spark,kissmetrics/spark,goldmedal/spark,highfei2011/spark,shuangshuangwang/spark,shubhamchopra/spark,apache/spark,JoshRosen/spark,wangyum/spark,metamx/spark,narahari92/spark,aokolnychyi/spark,cin/spark,janewangfb/spark,xuanyuanking/spark,alunarbeach/spark,aosagie/spark,hhbyyh/spark,lvdongr/spark,narahari92/spark,ueshin/apache-spark,dongjoon-hyun/spark,ptkool/spark,zero323/spark,guoxiaolongzte/spark,vinodkc/spark,aokolnychyi/spark,taroplus/spark,publicRoman/spark,setjet/spark,Panos-Bletsos/spark-cost-model-optimizer,LantaoJin/spark,eyalfa/spark,narahari92/spark,zhouyejoe/spark,debugger87/spark,srowen/spark,brad-kaiser/spark,andrewor14/spark,BryanCutler/spark,nchammas/spark,ajaysaini725/spark,yanboliang/spark,guoxiaolongzte/spark,sachintyagi22/spark,spark-test/spark,aosagie/spark,someorz/spark,rednaxelafx/apache-spark,big-pegasus/spark,aray/spark,loneknightpy/spark,jianran/spark,Panos-Bletsos/spark-cost-model-optimizer,kissmetrics/spark,LantaoJin/spark,highfei2011/spark,JerryLead/spark,mike0sv/spark,saltstar/spark,goldmedal/spark,srowen/spark,actuaryzhang/spark,chuckchen/spark,brad-kaiser/spark,eyalfa/spark,caneGuy/spark,ericvandenbergfb/spark,hhbyyh/spark,wangmiao1981/spark,ajaysaini725/spark,shuangshuangwang/spark,shaneknapp/spark,joseph-torres/spark,ajaysaini725/spark,map222/spark,sureshthalamati/spark,mike0sv/spark,dbtsai/spark,janewangfb/spark,maropu/spark,debugger87/spark,minixalpha/spark,Panos-Bletsos/spark-cost-model-optimizer,ahnqirage/spark,szhem/spark,ahnqirage/spark,liyichao/spark,saturday-shi/spark,pgandhi999/spark,srowen/spark,xflin/spark,metamx/spark,highfei2011/spark,1haodian/spark,BryanCutler/spark,shuangshuangwang/spark,icexelloss/spark,rekhajoshm/spark,JoshRosen/spark,SnappyDataInc/spark,minixalpha/spark,kissmetrics/spark,aokolnychyi/spark,tengpeng/spark,ConeyLiu/spark,nchammas/spark,darionyaphet/spark,mahak/spark,rezasafi/spark,liutang123/spark,mahak/spark