generateRandomSets static method

List<WorkoutSet> generateRandomSets()

Implementation

static List<WorkoutSet> generateRandomSets() {
  final setCount = 2 + _rnd.nextInt(3);
  return List.generate(setCount, (i) {
    final reps = 6 + _rnd.nextInt(7);
    final weight = 40 + _rnd.nextInt(61);
    return WorkoutSet(targetReps: reps, targetWeight: weight.toDouble());
  });
}