⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 random.scala

📁 JAVA 语言的函数式编程扩展
💻 SCALA
字号:
/*                     __                                               *\**     ________ ___   / /  ___     Scala API                            ****    / __/ __// _ | / /  / _ |    (c) 2006-2007, LAMP/EPFL             ****  __\ \/ /__/ __ |/ /__/ __ |    http://scala-lang.org/               **** /____/\___/_/ |_/____/_/ | |                                         ****                          |/                                          **\*                                                                      */// $Id: Random.scala 14498 2008-04-04 12:12:27Z washburn $package scala/** (see http://java.sun.com/javame/reference/apis/jsr030/) * *  @author Stephane Micheloud */class Random(val self: java.util.Random) {  /** Creates a new random number generator using a single long seed. */  def this(seed: Long) = this(new java.util.Random(seed))  /** Creates a new random number generator using a single integer seed. */  def this(seed: Int) = this(seed.toLong)  /** Creates a new random number generator. */  def this() = this(compat.Platform.currentTime)  /** Returns the next pseudorandom, uniformly distributed int value   *  from this random number generator's sequence.   */  def nextInt(): Int = self.nextInt()  /** Returns the next pseudorandom, uniformly distributed long value   *  from this random number generator's sequence.   */  def nextLong(): Long = self.nextLong()  def setSeed(seed: Long) { self.setSeed(seed) } }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -