trait NumberGenerator extends AnyRef

Created by chris on 6/16/16.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NumberGenerator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def bigInts: Gen[BigInt]

    Chooses a BigInt in the ranges of 0 <= bigInt < 2^^64

  6. def bigIntsUInt64Range: Gen[BigInt]
  7. def bigSizeUInt: Gen[BigSizeUInt]
  8. def bitVector: Gen[BitVector]

    Generates a bit vector

  9. def bool: Gen[Boolean]

    Generates a random boolean

  10. def byte: Gen[Byte]

    Generates an arbitrary Byte in Scala

  11. def bytes(num: Int): Gen[List[Byte]]

    Generates the number of bytes specified by num

  12. def bytes: Gen[List[Byte]]

    Generates a 100 byte sequence

  13. def bytevector(length: Int): Gen[ByteVector]
  14. def bytevector: Gen[ByteVector]

    Generates an arbitrary ByteVector

  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  16. def compactSizeUInts: Gen[CompactSizeUInt]
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  20. def genP: Gen[UInt8]

    Generates a random GCS P parameter.

    Generates a random GCS P parameter.

    Bit parameter for GCS, cannot be more than 32 as we will have a number too large for a UInt64.

    See also

    https://github.com/Roasbeef/btcutil/blob/b5d74480bb5b02a15a9266cbeae37ecf9dd6ffca/gcs/gcs.go#L67

  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def int32s: Gen[Int32]
  24. def int64s: Gen[Int64]
  25. val ints: Gen[Int]

    Random integers

  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. val negativeInts: Gen[Int]

    Integers between Int.MinValue and -1

  29. def negativeLongs: Gen[Long]

    Creates a number generator that generates negative long numbers

  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. def positiveBigInts: Gen[BigInt]
  33. val positiveInts: Gen[Int]

    Integers between 0 and Int.MaxValue

  34. def positiveLongs: Gen[Long]

    Creates a generator that generates positive long numbers

  35. def positiveLongsNoZero: Gen[Long]

    Creates a generator for positive longs without the number zero

  36. def positiveScriptNumbers: Gen[ScriptNumber]
  37. def positiveShort: Gen[Short]
  38. def scriptNumbers: Gen[ScriptNumber]
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def timeLockScriptNumbers: Gen[ScriptNumber]

    The policy bounds for nTimeLock fields (see TxBuilder)

  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. def uInt16: Gen[UInt16]
  43. def uInt32s: Gen[UInt32]

    Generates a number in the range 0 <= x <= 2 ^^32 - 1 then wraps it in a UInt32

  44. def uInt5: Gen[UInt5]
  45. def uInt5s: Gen[Seq[UInt5]]
  46. def uInt64: Gen[UInt64]
  47. def uInt64s: Gen[UInt64]

    Generates a number in the range 0 <= x < 2^^64 then wraps it in a UInt64

  48. def uInt8: Gen[UInt8]
  49. def uInt8s: Gen[Seq[UInt8]]
  50. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped