thrash around aimlessly

Translations
беспорядочно метаться
The bird thrashed around aimlessly in the cage.
Птица беспорядочно металась в клетке.