Is java.util not allowed or something?


  • 0
    A

    I am getting this error
    Line 20: error: cannot find symbol: class util

    I am ofcourse trying to use java.util.Random to see whether it will be a uniform distribution as it says in the documentation :)


  • 0

    Well, class util truly doesn't exist in Java (unless you write your own, of course).


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.