static String randomNumber(int length) { const c = "0123456789"; final r = Random(); return String.fromCharCodes(List.generate( length, (index) => c.codeUnitAt(r.nextInt(c.length)), )); }