Search:

Type: Posts; User: kjdeutin

Search: Search took 0.09 seconds.

  1. Re: Creating a Secret Numbers game, need help with random number max and min.

    I am using
    randomNumber = randInt(max) + 1; as my "call" function I think.

    --- Update ---

    This is what I had originally:



    public static int randInt(int max)
  2. Re: Creating a Secret Numbers game, need help with random number max and min.

    I think I may just be confused as to where I put that. I'm sorry but I'm really bad with understanding just basic things right now. I think I understand what you're saying, I'm just having a hard...
  3. Re: Creating a Secret Numbers game, need help with random number max and min.

    Thanks. I'm really new to Java so it might be hard for me to understand some of the things you mention.

    This is how I think I used this argument to call it:


    randomNumber = randInt(max + 1);...
  4. Re: Creating a Secret Numbers game, need help with random number max and min.

    I don't think that it will return the maximum value. For example if I use 10, it will never return 10.
  5. Creating a Secret Numbers game, need help with random number max and min.

    So I am trying to come up with a game that has three levels, easy, medium, and hard as well as a custom. The problem I have is creating a random integer that allows there to be a minimum of 1 and a...
Results 1 to 5 of 5