Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4297219

java.util.Random documentation suggestions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.2
    • docs
    • beta
    • generic
    • generic



      Name: rlT66838 Date: 12/06/99


      java version "1.2.2"
      HotSpot VM (1.0.1, mixed mode, build g)

      2 suggestions for java.util.Random documentation

      1. It might be good to add a warning to the no-argument constructor stating
      that two Random objects created within the same millisecond will have the same
      value / sequence. (I did this a long time ago and had no problems under
      interpreted Java; then under a JIT I was all of a sudden getting the same
      sequence for 2 different cases.)

      2. The nextBoolean() function javadoc is missing a </BLOCKQUOTE>
      (Review ID: 98710)
      ======================================================================

            jhosunw Jamie Ho (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: