Skip to content

Instantly share code, notes, and snippets.

@tomer-ben-david
Last active August 29, 2015 14:12
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 tomer-ben-david/dbe26012b7b3b30804e1 to your computer and use it in GitHub Desktop.
Save tomer-ben-david/dbe26012b7b3b30804e1 to your computer and use it in GitHub Desktop.
scalacheck generate sample of longs with different frequencies
val arbLong: Gen[Long] = {
Gen.frequency((20, Arbitrary.arbDouble), (1, Long.MaxValue)).sample.get.arbitrary
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment