Shaxda tusmada
Tababarku wuxuu sharxayaa waxyaabaha gaarka ah ee abuuraha nambarka random nambarka algorithm ee Excel wuxuuna muujinayaa sida loo isticmaalo RAND iyo RANDBETWEEN shaqooyinka si loo soo saaro tirooyin random ah, taariikho, ereyada sirta ah iyo xargaha qoraalka kale ee Excel. >
Kahor intaanan u galin farsamooyinka kala duwan ee soo saarista lambarada random ee Excel, aynu qeexno waxay dhab ahaantii yihiin. Ingiriisi cad, xogta randomku waa lambaro taxane ah, xarfo ama calaamado kale oo aan lahayn qaab kasta.Randomness waxay leedahay codsiyo kala duwan oo kala duwan oo ah cryptografi, statistics, lottery, khamaarka, iyo meelo kale oo badan. Iyo sababta oo ah had iyo jeer baahida loo qabo, habab kala duwan oo loo abuuro tirooyin aan kala sooc lahayn ayaa jiray tan iyo wakhtiyadii hore, sida qadaadiicda la rogo, laadhuu laadhuuga, isku shaandhaynta kaararka ciyaarta, iyo wixii la mid ah. Dabcan, kuma tiirsanaan doonno farsamooyinka noocan oo kale ah ee casharradan oo aan diiradda saarno waxa uu bixiyo koronto-dhaliye lambarka random Excel.
Excel nambarka random nambarka - aasaaska<7
Inkasta oo koronto-dhaliyaha random-ka ee Excel uu dhaafo dhammaan imtixaanada caadiga ah ee randomnimada, ma dhaliyo run tirooyin random ah. Laakin si degdeg ah ha u qorin si dhow u eeg algorithm-ka curiyaha random-ka ee Excel si aad u ogaato waxa aad ka filan karto, iyo waxa aadan awoodin" 2Yuu& " Ha noqon xoog Dabcan, ma jiraan wax sheegaya inaadan curin karin xargaha qoraalka dheer adiga oo silsilado ku xiraya hawlo badan oo CHAR / RANDBETWEEN ah. Si kastaba ha ahaatee, suurtagal maaha in la kala saaro nidaamka ama jilayaasha, tusaale ahaan shaqada 1aad waxay mar walba soo celisaa lambar, shaqada 2aad waxay soo celisaa xaraf weyn iyo wixii la mid ah.
>Haddii aad raadinayso koronto-dhaliye sare oo furaha sirta ah ee Excel karti u leh. Soo saarista xadhkaha qoraalka ee dherer kasta iyo qaab kasta, waxa laga yaabaa inaad rabto inaad hubiso awoodaha Sareeye Random Generator ee xadhkaha tijaabada wakhtiga xaashida shaqadu dib u xisaabinayso. Si aad u hubiso in xadhkahaaga ama furahaaga sirta ah ay isku mid yihiin marka la abuuro, waa inaad joojisaa shaqada RANDBETWEEN inay cusbooneysiiso qiyamka, taas oo toos noogu hogaaminaysa qaybta xigta.Sida looga hortago RAND iyo RANDBETWEEN dib u xisaabinta
Haddii aad rabto inaad hesho tiro joogto ah oo lambaro random ah, taariikho ama xargo qoraal ah oo aan isbeddelayn mar kasta oo xaashida dib loo xisaabiyo, isticmaal mid ka mid ah farsamooyinkan soo socda:
> 25>Sida loo abuuro tirooyin random gaar ah oo ku jira Excel
qiyamka random gaar ah. Haddii aad rabto inaad samayso liis lambaro random ah iyada oo aan la nuqulin , samee tillaabooyinkan: > 25>AbleBits Random Generator Excel waxaa loogu talagalay inuu noqdo mid ka xoog badan oo isticmaala-beddelka saaxiibtinimo ee Excel's RAND iyo RANDBETWEEN. Waxay la shaqeysaa dhammaan noocyada Microsoft Excel 2019, 2016, 2013, 2010, 2007 iyo 2003 si isku mid ah waxayna wax ka qabtaa inta badan arrimaha tayada iyo isticmaalka ee shaqooyinka caadiga ah ee random.
> 27>AbleBits Random Number Generator algorithmKahor intaanan muujin Generator Random-ka ficil ahaan, aan ku bixiyo dhawr qoraalo muhiim ah algorithm-keeda si aad u ogaato sida saxda ah waxa aanu bixinayno Mersenne Twister algorithm, kaas oo loo tixgeliyo halbeegga warshadaha ee tayada sare leh ee randomization-ka been-abuurka ah.
Sida aan horeba u xusnay, kan horumarsan ee Nambarka Random Generator ee Excel waxa uu bixiyaa qaacido lacag la'aan ah (oo sidaas awgeed khalad la'aan :)samee qiimayaal random oo kala duwan sida:
- Tirada aan sugnayn ama jajab tobanle, oo ay ku jiraan tirooyin gaar ah
- Taariikhaha aan sugnayn (maalmaha shaqada, maalmaha fasaxa ah, ama labadaba, iyo taariikhaha ikhtiyaariga ah) 11>Xadhkaha qoraalka aan tooska ahayn, oo ay ku jiraan ereyada sirta ah ee dhererka iyo qaabka la bixiyay, ama waji-xidhka
Samee lambarrada random ee Excel
Iyada oo leh AbleBits Random Number Generator, abuurista liiska lambarrada random waa sida ugu fudud sida gujinta badhanka Samee .
Samaynta isugaynta random-ka gaarka ah >
>Waxa kaliya ee ay tahay inaad samayso waa inaad dooratid tirada lagu buuxinayo tiro aan toos ahayn, deji qiimaha hoose iyo sare iyo, ikhtiyaar ahaan, calaamadee Qiimaha gaarka ah sanduuqa.
Si la mid ah, waxaad soo saari kartaa tirooyin jajab tobanle ah oo random ah oo kala duwan oo aad sheegtay.
0>Ku samee taariikhaha random Excel
>Taariikhaha, Generator Number-ka Random Number wuxuu bixiyaa xulashooyinka soo socda: >- >Samee taariikhaha aan tooska ahayn ee wakhti gaar ah period - waxaad galisaa taariikhda hoose ee laga bilaabo sanduuqa iyo taariikhda ugu saraysa ee ilaa sanduuqa
- Ku dar maalmaha shaqada, maalmaha fasaxa ah, ama labadaba. 11>Samee taariikho gaar aherayga sirta ah
- Howlaha Excel RAND iyo RANDBETWEEN waxay abuuraan nambaro-random-ka-soo-baxa Uniform > qaybinta , aka qaybinta leydi, halkaas oo ay jirto ixtimaalka siman ee dhammaan qiyamka doorsoomaha random qaadan karo. Tusaalaha wanaagsan ee qaybinta direysku waa tuurista hal dhinta. Natiijada tuurista ayaa ah lix qiyam oo suurtagal ah (1, 2, 3, 4, 5, 6) mid kasta oo ka mid ah qiimayaashan waxay u badan tahay inay dhacaan. Si aad u hesho sharraxaad cilmiyaysan oo dheeraad ah, fadlan eeg wolfram.com. >
- Ma jirto hab lagu abuuro Excel RAND ama RANDBETWEEN midkood, kuwaas oo lagu xamanayo in laga bilaabo wakhtiga nidaamka kombiyuutarka. Farsamo ahaan, iniin waa meesha laga bilaabayo soo saarista tirooyin taxane ah oo random ah. Mar kasta oo shaqada Excel random la yiraahdo, iniin cusub ayaa la isticmaalaa oo soo celisa isku xigxig gaar ah oo random ah. Si kale haddii loo dhigo, marka la isticmaalayo koronto-dhaliye nambarka random-ka gudaha Excel, ma heli kartid isku xigxig lagu celin karo RAND ama RANDBETWEENshaqo, ama dariiq kale. dhowr imtixaan oo caadi ah oo randomity ah oo ku saabsan isku xigxiga random ee dheer. Markaa, haddii qof wali la shaqeeyo noocii hore ee Excel, waxa fiican inaadan isticmaalin shaqada RAND ee leh moodooyinka jilitaanka ee waaweyn.
Marka laga reebo tirooyinka random-ka iyo taariikhaha, adiga oo wata curiyaha random-ka waxaad si fudud u samayn kartaa xarfo xarfo ah oo random ah oo wata xarfo gaar ah. Dhererka xadhkaha ugu badan waa 99 xaraf, kaas oo ogolaanaya in la dhaliyo furaha sirta ah ee xooggan.
Doorasho gaar ah oo ay bixiso AbleBits Random Number Generator waxa uu abuurayaa xadhkaha qoraalka random by maaskaro
10>. Tani waa sifo faa'iido badan u leh soo saarista aqoonsiyada caalamiga ah (GUID), zip codes, SKUs, iyo wixi la mida ????????????-????-????-?????????????????? sanduuqa Mask , sida ku cad shaashadda:> 3>
Haddii aad xiisaynayso inaad tijaabiso Generator-ka random-ka, waxa lagugu soo dhawaynayaa inaad soo dejiso waxa hoos ku yaal iyada oo qayb ka ah Ultimate Suite for Excel.
la heli karo soo dejisasho
>Tusaaleyaal qaacido aan toos ahayn (.xlsx file)
>Ultimate Suite 14-day version si buuxda u shaqaynaya (. exe faylka) > Barnaamijyada, curiyaha nambarka random-ka ee Excel waxa uu soo saaraa nambaro random-ka-soo-jeed ah isagoo isticmaalaya qaacidooyin xisaabeed. Waxa ay kaaga dhigan tahay, aragti ahaan, tirooyinka random ee uu soo saaray Excel waa la saadaalin karaa, waase haddii qof uu garanayo dhammaan faahfaahinta algoorithmiyaha koronto-dhaliyaha. Tani waa sababta aan waligeed la diiwaangelin oo ay adag tahay weligeed ahaan doonto. Hagaag, maxaan ka ognahay koronto-dhaliyaha nambarka random-ka ee Excel?- >
Excel RAND function - waxay soo saartaa tirooyinka dhabta ah ee aan tooska ahayn
Shaqada RAND ee Excel waa mid ka mid ah labada hawlood ee si gaar ah loogu talagalay soo saarista lambarrada random. Waxay soo celisaa tiro jajab tobanle ah (lambarka dhabta ah) ee u dhexeeya 0 iyo 1.
RAND() waa shaqo aan degganayn, taasoo la macno ah in nambar cusub oo random ah la soo saaro mar kasta oo xaashida shaqada la xisaabiyo. Tanina waxay dhacdaa mar kasta oo aad ficil kasta ku sameyso xaashida shaqada, tusaale ahaan cusboonaysii qaacidada (ma aha qasab formula RAND, kaliya qaacido kasta oo kale oo ku jiraxaashi), tafatir unug ama geli xog cusub.
Shaqada RAND waxay diyaar ku tahay dhammaan noocyada Excel 365 - 2000.
unug ka dibna ku koobbi qaacidada unugyo badan oo aad rabto:
Imikana, aynu tallaabo dheeraad ah qaadno oo aynu qorno dhawr nooc oo RAND ah si aynu u soo saarno tirooyin aan toos ahayn.
Formula 1. Cadee qiimaha xadka sare ee kala duwan
>Si aad u abuurto tirooyin random ah oo u dhexeeya eber iyo qiime kasta N , waxaad ku dhufataa shaqada RAND N: RAND()* NTusaale ahaan, si loo sameeyo isku xigxiga tirooyinka random ee ka weyn ama la mid ah 0 balse ka yar 50, isticmaal qaacidada soo socota:
=RAND()*50
Fiiro gaar ah. Qiimaha xadka sare waligiis laguma darin taxanaha random ee la soo celiyay. Tusaale ahaan, haddii aad rabto inaad hesho lambarro random ah oo u dhexeeya 0 iyo 10, oo ay ku jiraan 10, qaacidada saxda ah waa =RAND()*11
.
Formula 2. Samee tirooyin random ah inta u dhaxaysa laba lambar
>Si aad u abuurto lambar random inta u dhaxaysa laba kasta. nambarada aad sheegtay, isticmaal qaacidada RAND ee soo socota: RAND()*( B - A )+ Ahalka A waa qiimaha xadka hoose (lambarka ugu yar) iyo B waa qiimaha xadka sare (lambarka ugu weyn)
Tusaale ahaan, si loo abuuro tirooyin random ah oo u dhexeeya 10 iyo 50 , waxaad isticmaali kartaa qaacidada soo socota:
=RAND()*(50-10)+10
Fiiro gaar ah. Qaaciddada random-ka ah weligeed soo celin mayso tiro simanilaa tirada ugu badan ee tirada la cayimay ( B qiimaha).
Formula 3. Abuurista isku-dhafka aan tooska ahayn ee Excel
Si loo sameeyo shaqada Excel RAND inay soo saarto tiro aan kala sooc lahayn, qaado mid ka mid ah hababka kor ku xusan oo ku duub shaqada INT.
Si loo abuuro Integers random inta u dhaxaysa 0 iyo 50:
> =INT(RAND()*50)
>Shaqada RANDBETWEEN ee Excel - waxay soo saartaa tirooyin random ah oo kala duwan oo kala duwan RANDBETWEEN waa hawl kale oo uu bixiyo Excel si loo soo saaro tirooyin random ah. Waxay ku soo celisaa random integers inta u dhaxaysa tirada aad sheegtay:
RANDBETWEEN(hoos, sare)Dabcan, b >ottom waa lambarka ugu hooseeya iyo top waa lambarka ugu sarreeya tirada lambarrada random-ka ah ee aad rabto inaad hesho.
>Sida RAND, Excel's RANDBETWEEN waa shaqo aan degganayn oo waxay soo celisaa tiro cusub oo random ah mar kasta oo xaashidaadu dib u xisaabiso.Tusaale ahaan, si aad u abuurto tiro aan kala sooc lahayn oo u dhaxaysa 10 iyo 50 (ay ku jiraan 10 iyo 50), isticmaal qaacidada RANDBETWEEN ee soo socota:
=RANDBETWEEN(10, 50)
=RANDBETWEEN(-10, 10)
Shaqada RANDBETWEEN waxay ku jirtaa Excel 365 - Excel 2007. In Noocyadii hore, waxaad isticmaali kartaa qaacidada RANDlagu muujiyay Tusaalaha 3-aad ee sare.
Inta dheer ee casharradan, waxaad ka heli doontaa dhawr tusaale oo qaacido ah oo muujinaya sida loo isticmaalo shaqada RANDBETWEEN si loo dhaliyo qiyam aan kala sooc lahayn oo aan ahayn tirooyin.
> Talo. Gudaha Excel 365 iyo Excel 2021, waxaad isticmaali kartaa shaqada RANDARRAY ee firfircoon si aad u soo celiso tirooyin random ah oo u dhexeeya laba tiro kasta oo aad sheegtay.Abuur tirooyin random ah oo leh meelo jajab tobanle ah oo cayiman
Inkasta oo Shaqada RANDBEETWEEN ee Excel waxaa loogu talagalay in lagu celiyo tirooyin jajab tobanle ah, waxaad ku qasbi kartaa inay ku soo celiso tirooyin jajab tobanle ah oo leh meelo badan oo jajab tobanle ah intaad rabto.
Tusaale ahaan, si aad u hesho liis tirooyin leh hal jajab tobanle waxaad ku dhufataa qiyamka hoose iyo kan sare 10, ka dibna u qaybi qiimaha la soo celiyay 10:
RANDBETWEEN( qiimaha hoose* 10, qiimaha sare* 10)/10Qaciidada RANDBETWEEN ee soo socota waxay soo celisaa tirooyin jajab tobanle ah oo random ah inta u dhaxaysa 1 iyo 50:
=RANDBETWEEN(1*10, 50*10)/10
Si la mid ah, si loo abuuro tirooyin random ah inta u dhaxaysa 1 iyo 50 2 meelood oo jajab tobanle ah, waxaad ku dhufataa 100 doodaha shaqada RANDBETWEEN, ka dibna u qaybi natiijada 100 sidoo kale:
=RANDBETWEEN(1*100, 50*100) / 100
Tusaale ahaan , kuHel liiska taariikhaha u dhexeeya 1-Jun-2015 iyo 30-June-2015 oo ay ku jiraan, geli qaacidada soo socota xaashida shaqada:
=RANDBETWEEN(DATEVALUE("1-Jun-2015"),DATEVALUE("30-Jun-2015"))
Haddii kale, waxaad isticmaali kartaa shaqada DATE halkii aad isticmaali lahayd. TAARIIKHDA:
=RANDBETWEEN(DATE(2015,6,1),DATEVALUE(2015,6,30))
Xusuuso inaad ku dabaqdo qaabka taariikhda unugga(yada) oo waxaad heli doontaa liis taariikho random ah oo la mid ah tan:
>> 3>
Tiro doorasho horumarsan sida abuurista random-maalmo shaqo ama sabtida, ka eeg Advanced Random Generator taariikhaha
Sida loo geliyo waqtiyo random Excel
Xusuusnow in Waqtiyada nidaamka Excel gudaha waxaa loo kaydiyaa jajab tobanle, waxaad isticmaali kartaa shaqada caadiga ah ee Excel RAND si aad u geliso tirooyinka dhabta ah ee random, ka dibna si fudud u isticmaal qaabka wakhtiga unugyada:
> >>> 3> soo celi waqtiyo random sida waafaqsan shuruudahaaga, qaacido random oo gaar ah ayaa loo baahan yahay, sida hoos lagu muujiyey.Formula 1. Samee waqtiyo random ah inta u dhaxaysa
Si aad u geliso waqtiyo random inta u dhaxaysa labada jeer ee kasta Waxaad sheegtaa, isticmaal midkood TIME ama T IMEVALUE waxay la shaqaysaa Excel RAND:
WAQTIGA( waqtiga bilawga)+RAND() * ( waqtiga bilawga) - TIME( wakhtiga dhamaadka)) TIMEVALUE( waqtiga bilowga geli wakhti random ah inta u dhaxaysa 6:00 subaxnimo iyo 5:30 galabnimo, waxaad isticmaali kartaa mid ka mid ah hababka soo socda: =TIME(6,0,0) + RAND() * (TIME(17,30,0) - TIME(6,0,0))
=TIMEVALUE("6:00 AM") + RAND() * (TIMEVALUE("5:30 PM") - TIMEVALUE("6:00 AM"))
>
Formula 2. Soo saaristaTaariikhaha iyo waqtiyada randomka
>Si aad u abuurto liis random taariikhaha iyo wakhtiyada , isticmaal isku darka RANDBETWEEN iyo DATEVALUE hawlaha: RANDBETWEEN(DATEVALUE( taariikhda bilawga) , DATEVALUE( taariikhda dhamaadka )) + RANDBETWEEN(TIMEVALUE( waqtiga bilawga ah )* 10000, TIMEVALUE( dhamaadka ) * 10000)/10000Haddii aad rabto inaad geliso taariikhaha aan tooska ahayn inta u dhaxaysa Juun 1, 2015 iyo Juun 30, 2015 wakhti u dhexeeya 7:30 subaxnimo iyo 6:00 galabnimo, qaacidada soo socota waxay shaqayn doontaa daweyn:
> =RANDBETWEEN(DATEVALUE("1-Jun-2015"), DATEVALUE("30-Jun-2015")) + RANDBETWEEN(TIMEVALUE("7:30 AM") * 10000, TIMEVALUE("6:00 PM") * 10000) / 10000
0> Waxa kale oo aad keeni kartaa taariikhaha iyo wakhtiyada adoo isticmaalaya DATE iyo TIME, siday u kala horreeyaan:
=RANDBETWEEN(DATE(2015,6,1), DATE(2015,6,30)) + RANDBETWEEN(TIME(7,30,0) * 10000, TIME(18,0,0) * 10000) / 10000
=CHAR(RANDBETWEEN(CODE("A"),CODE("Z")))
Halka A yahay jilaagii ugu horreeyay waa jilaha ugu dambeeya ee xarfaha kala duwan ee aad rabto in aad ku darto (sida alifbeetada u kala horreeyaan).
Qodobka kore:
- CODE waxa uu soo celinayaa nambarada ANSI ee xarfaha cayiman.
- RANDBETWEEN waxay qaadataa n Umbers ay soo celiyeen CODE waxay u shaqeeyaan sida hoose iyo qiimaha ugu sarreeya ee kala duwan.
- CHAR waxay beddeshaa nambarada ANSI ee aan tooska ahayn ee ay ku celiso RANDBETWEEN xarfaha u dhigma.
Ogow. Maadaama, koodka ANSI ay ku kala duwan yihiin UPPERCASE iyo xarfaha yaryar, qaaciddadani waa xaalad xasaasi ah . 0si toos ah koodka loo keeno shaqada RANDBETWEEN.
Tusaale ahaan, si loo helo random xarfaha sare inta u dhaxaysa A (ANSI code 65) iyo Z (ANSI code 90), waxaad qortaa:
=CHAR(RANDBETWEEN(65, 90))
Si aad u soo saarto xaruufta hoose laga bilaabo a (ANSI code 97) ilaa z (ANSI code 122), waxaad isticmaashaa qaacidada soo socota:
> =CHAR(RANDBETWEEN(97, 122))
>Si aad u geliso xarfo gaar ah oo random ah, sida ! " # $ % & ' ( ) * + , - . /, adeegso shaqada RANDBETWEEN oo leh hoose beegyada loo dejiyay 33 (ANSI code for "!') iyo sare halbeeg loo dejiyay 47 (ANSI code for "/"). =CHAR(RANDBETWEEN(33,47))
Abuuritaanka xargaha qoraalka iyo furaha sirta ah ee Excel
>Si loo sameeyo xadhig qoraal ah oo random gudaha Excel , kaliya waa inaad isku xirtaa dhowr hawlood oo CHAR / RANDBEETWEEN ah.Tusaale ahaan, si aad u abuurto liis sir ah oo ka kooban 4 xaraf, waxaad isticmaali kartaa qaacido la mid ah tan:
> =RANDBETWEEN(0,9) & CHAR(RANDBETWEEN(65,90)) & CHAR(RANDBETWEEN(97, 122)) & CHAR(RANDBETWEEN(33,47))
Si aan qaaciddada uga dhigo mid cufan, waxaan si toos ah u soo geliyay koodka ANSI ee qaacidada. Afarta hawlood waxay soo celiyaan qiyamka random ee soo socda:
- >
-
CHAR(RANDBETWEEN(97, 122))
- waxay soo celisaa xarfo yaryar oo random ah inta u dhaxaysa a iyo z . >>
RANDBETWEEN(0,9)
- waxay soo celisaa tirooyinka random inta u dhaxaysa 0 iyo 9. > CHAR(RANDBETWEEN(65,90))
- waxay soo celisaa xarfaha KARE ee u dhexeeya A iyo Z . > CHAR(RANDBETWEEN(33,47))
- waxay soo celisaa xarfo gaar ah oo random-ka ah. Xudhiga qoraalka ee lagu sameeyay qaacidada sare waxay noqonaysaa wax sida " 4Np# " ama