You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
Hi, I am writing a program that generates random maths questions for primary schools, but I'm having a problem finding out how to select one of the following characters at random (+ - * /).
Please can you help?
Do what was previously stated and use Random.nextInt(4). It will return you either 0,1,2 or 3. You can use that to get one of the symbols from the array.