switchToRandomTab function
Implementation
void switchToRandomTab(TabSelectionController currentIndexController) {
var random = Random();
var target = random.nextInt(3);
while (target == currentIndexController.value.current) {
target = random.nextInt(3);
}
currentIndexController.select(target);
}