All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.morgaroth.utils.random.randoms.scala Maven / Gradle / Ivy

package pl.morgaroth.utils.random

import scala.util.Random

trait randoms {
  val randGenerator = Random

  def randomInt = randGenerator.nextInt()

  def randomInt(max: Int) = randGenerator.nextInt(max)
}

object randoms extends randoms {

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy