Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 138cf45

Browse files
Merge branch 'master' of github.com:HowProgrammingWorks/Function
2 parents 425b688 + bb5b975 commit 138cf45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎Exercises.ru.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Упражнения: Функции
22

33
1. Реализуйте функцию `random(min, max)`, возвращающую псевдо-случайное
4-
значение от `min` до `max`. Используйте `Math.random()` и `Math.floor()`
4+
значение от `min` до `max`. Используйте `Math.random()` и `Math.floor()`.
5+
При вызове `random(max)` нужно считать, что `min = 0`.
56
2. Реализуйте функцию `generateKey(length, characters)`, возвращающую строку
67
случайных символов из набора `characters` длиной `length`. Например:
78
```js

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /