currency static method

String currency()

Generate a random currency and amount.

Implementation

static String currency() {
  final amount = (_random.nextDouble() * 1000).toStringAsFixed(2);
  return '${currencies[_random.nextInt(currencies.length)]} $amount';
}