Search:

Type: Posts; User: juwan

Search: Search took 0.09 seconds.

  1. [SOLVED] Re: this.something = something - problem with "double"

    I don't know how could I have missed that. It works now. Thx m8.
  2. [SOLVED] this.something = something - problem with "double"

    I have a rather simple problem, but I can't solve it somehow.



    class lokomotiva extends element{

    public lokomotiva(double maxMasa){

    super(maxMasa);
  3. Replies
    3
    Views
    6,802

    how to align last digits

    Let me present my problem on this case:



    Running this program in cmd, it simply prints out 10 numbers, each in new line. Their first digits are aligned.

    What am I trying to do is to align...
  4. Replies
    6
    Views
    2,779

    [SOLVED] Re: Random 0/1 with given possibility

    I've solved my problem:

    p = 0,7 (user input)
  5. Replies
    6
    Views
    2,779

    [SOLVED] Re: Random 0/1 with given possibility

    I look over util.random and math.random, but I was't able to find anything, that would allow me to set the probability.
  6. Replies
    6
    Views
    2,779

    [SOLVED] Random 0/1 with given probability

    I'm trying to get a random value of 0 or 1, with given probability (like 0,7) of it being 1.

    Which function can I use in such a case?
    Where can I find that function better explained?

    Any help...
Results 1 to 6 of 6