The Artima Developer Community
Sponsored Link

Java Answers Forum
String Arrays

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Kelly Ferris

Posts: 2
Nickname: javagrl
Registered: Oct, 2002

String Arrays Posted: Oct 18, 2002 3:58 PM
Reply to this message Reply
Advertisement
I need help with this program. I am very new to Java, so bare with me if my terminology is a little off.

I need to write a program that will randomly select some results. You all know the game of Clue. Well I need to generate results based on 6 possible suspects, 6 weapons and 6 rooms, and display all 3 results in one line. I don't want my Math.random(); to use the same number twice. Also how do I apply the random number to a String output?
Any suggestions would be great. Thanks in Advance!!

Topic: Java Question Previous Topic   Next Topic Topic: Runing Precompiled JSP with Tomcat

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use