Random in dots How do i do it ?
I dont know if this is a advanced level of coding but i want to know how to make a random generator in dots.
I know how to make the random numbers, JRadioButton, JButton, BorderLayout and all the beginner stuff but what do i need to know more.
I want to have 5 dots in line and sat the randomness to 0-3 so if you push the button it will generate the dots in them.
like if you have 5 dots = O O O O O
and fill them up with the random dots
sorry for my english
Re: Random in dots How do i do it ?
I don't really understand what you're trying to do, but your description makes me think of the 5 dots as a 5-digit binary number. If you think of it that way, you could generate a random number, 0 - 32, and fill in the 5 dots as though they were the ones in the binary version of decimal numbers 0 - 32.