Arkanoid: rand_range, remote temp number

This commit is contained in:
TQMatvey 2022-09-14 12:46:40 +07:00
parent 4417a37a2e
commit 9c3406895c

View File

@ -67,8 +67,7 @@ static const NotificationSequence sequence_short_sound = {
// generate number in range [min,max) // generate number in range [min,max)
int rand_range(int min, int max) { int rand_range(int min, int max) {
int number = min + rand() % (max - min); return min + rand() % (max - min);
return number;
} }
void move_ball(Canvas* canvas, ArkanoidState* st) { void move_ball(Canvas* canvas, ArkanoidState* st) {