randomArray<T> function
origin: kt_ifm_gtid_mob/lib/global.dart union-of: stm_portal_mob/lib/global.dart author: anovsiradj, opencode-go/glm-5.2 version: 2025-03-03, revised: 2026-08-17
Implementation
T randomArray<T>(List<T> oldItems) {
final newItems = oldItems.toList();
newItems.shuffle();
return newItems.first;
}