Skip to content

Instantly share code, notes, and snippets.

@richard457
Last active May 24, 2022 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richard457/4e81a821f9ebe291fecf1faee69826de to your computer and use it in GitHub Desktop.
Save richard457/4e81a821f9ebe291fecf1faee69826de to your computer and use it in GitHub Desktop.
InvoiceGenerator
import 'dart:math';
import 'package:intl/intl.dart';
import 'dart:math' as math;
void main() {
var random = math.Random();
var randomNumber = '';
for (var i = 0; i < 10; i++) {
randomNumber += random.nextInt(10).toString();
}
print(randomNumber.substring(0, 8));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment