I don't know how could I have missed that. It works now. Thx m8.
Type: Posts; User: juwan
I don't know how could I have missed that. It works now. Thx m8.
I have a rather simple problem, but I can't solve it somehow.
class lokomotiva extends element{
public lokomotiva(double maxMasa){
super(maxMasa);
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...
I've solved my problem:
p = 0,7 (user input)
I look over util.random and math.random, but I was't able to find anything, that would allow me to set the 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...