Bash: Dice (1-6 random numbers): Difference between revisions
From WikiMLT
mNo edit summary |
m (Стадий: 4 [Фаза:Авторизиране, Статус:Разработен]; Категория:Linux Server) |
||
Line 17: | Line 17: | ||
{{devStage | {{devStage | ||
| Прндл = Linux Server | | Прндл = Linux Server | ||
| Стадий = | | Стадий = 4 | ||
| Фаза = | | Фаза = Авторизиране | ||
| Статус = | | Статус = Разработен | ||
| ИдтПт = Spas | | ИдтПт = Spas | ||
| РзбПт = | | РзбПт = Spas | ||
| АвтПт = | | АвтПт = {{REVISIONUSER}} | ||
| УтвПт = Spas | | УтвПт = Spas | ||
| ИдтДт = 20.07.2022 | | ИдтДт = 20.07.2022 | ||
| РзбДт = | | РзбДт = 3.08.2022 | ||
| АвтДт = | | АвтДт = {{Today}} | ||
| УтвДт = 20.07.2022 | | УтвДт = 20.07.2022 | ||
| ИдтРв = [[Special:Permalink/28954|28954]] | | ИдтРв = [[Special:Permalink/28954|28954]] | ||
| РзбРв = | | РзбРв = [[Special:Permalink/29849|29849]] | ||
| АвтРв = | | АвтРв = {{REVISIONID}} | ||
| РзАРв = [[Special:Permalink/28958|28958]] | | РзАРв = [[Special:Permalink/28958|28958]] | ||
| РзУРв = [[Special:Permalink/28960|28960]] | | РзУРв = [[Special:Permalink/28960|28960]] | ||
}} | }} | ||
</div> | </div> | ||
</noinclude> | </noinclude> |
Revision as of 11:12, 3 August 2022
Here is a CLI sample for dice simulation and partial analyze.
for i in {1..600}; do shuf -i 1-6 -n 1; done | sort | uniq -c | sort -nr
117 5
111 2
103 3
91 6
89 4
89 1
References:
- Random number from a range in a Bash Script
- Getting the count of unique values in a column in bash