-
-
Save wpupru/140b68c6f30300a30ca31c0c3c0ec2da to your computer and use it in GitHub Desktop.
Bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Bash | |
| ************************************************************************** | |
| Генератор случайных чисел | |
| Используйте $RANDOM. Это часто полезно в сочетании с простой арифметикой оболочки. Например, для генерации случайного числа между 1 и 10: | |
| $ echo $((1 + RANDOM % 10)) | |
| ************************************************************************ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment