• Post Reply Bookmark Topic Watch Topic
  • New Topic

Math.random

 
Indira Devi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am using JDK 1.3.Even after importing util package,Math.random does not work for me.The error msg is "Cannot resolve symbol".
Can anyone help me?
Thanks in advance

------------------
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show us a small piece of the code where you use Math.random? The following works for me, with no imports or anything.
 
Indira Devi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used the follg code(from the book Thinking in Java)
But during compilation i am getting "cannot resolve symbol error".
Please help me in this regard.

added UBB CODE tags to preserve indentation
[This message has been edited by Frank Carver (edited February 08, 2001).]
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Was this code pasted directly from your source file? It compiles and runs fine for me! Which Java version and compiler are you using?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!