Created
January 5, 2019 12:04
-
-
Save deHelden/53d13595878b5c351d34b0979a5a678e to your computer and use it in GitHub Desktop.
[Task 6] Sorting an array
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
# 6) Дан целочисленный массив. Упорядочить его по возрастанию. | |
def array_sort | |
victim_array = Array.new(15){rand(-100...100)} | |
victim_array.sort! | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment