Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: corelib/unified/math/random.dart

Issue 10831324: Cleanup of math sources. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Another attempt Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « corelib/unified/math/math_sources.gypi ('k') | lib/compiler/implementation/lib/coreimpl.dartp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/unified/math/random.dart
diff --git a/corelib/unified/math/random.dart b/corelib/unified/math/random.dart
deleted file mode 100644
index efc5678bc69dd711424f659ef01b32cda049a33e..0000000000000000000000000000000000000000
--- a/corelib/unified/math/random.dart
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// A part of the dart:math library.
-
-/**
- * A random number generator. The default implementation supplies a stream of
- * pseudo-random bits which is not suitable for cryptographic purposes.
- */
-class Random {
- /**
- * Creates a random-number generator. The optional parameter [seed] is used
- * to initialize the internal state of the generator. The implementation of
- * the random stream can change between releases of the library.
- *
- * Implementation note: The default implementation uses up to 64-bits of seed.
- */
- external factory Random([int seed]);
-
- /**
- * Generates a positive random integer uniformly distributed on the range
- * from 0, inclusive, to [max], exclusive.
- *
- * Implementation note: The default implementation supports [max] values
- * between 1 and ((1<<32) - 1) inclusive.
- */
- abstract int nextInt(int max);
-
- /**
- * Generates a positive random floating point value uniformly distributed on
- * the range from 0.0, inclusive, to 1.0, exclusive.
- */
- abstract double nextDouble();
-
- /**
- * Generates a random boolean value.
- */
- abstract bool nextBool();
-}
« no previous file with comments | « corelib/unified/math/math_sources.gypi ('k') | lib/compiler/implementation/lib/coreimpl.dartp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698