Last active
June 28, 2018 22:49
-
-
Save srawlins/76a0bcb996dc5936ed489b28a579bcbf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math' as math; | |
// Poorly named wrapper for math.Random | |
class Random { | |
math.Random inner; | |
Random(this.inner); | |
} | |
void main() { | |
List<Random> list = new List<Random>()..add(new Random(new math.Random(7))); | |
addRandom(list.map((e) => e.inner)); | |
} | |
addRandom(List<math.Random> list) => list..add(new math.Random()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment