Marketplace

Related Articles

More

Related Categories

Recently Added

More

Join StudyUp.com Today

It's always free and anyone can join!

Watch StudyUp Demo Video Now

You Recently Visited

Writing Prompt Generator

Tamara Said:

How to generate random numbers in Matlab?

We Answered:

x = round(15*rand)
y = input('guess 1 to 15: ')

I don't know what you mean by "originally set to a state of 18." You mean the seed?

I think this may work:
rand('seed',18)
round(15*rand)

Output is 3.

Roberta Said:

So I found this website...?

We Answered:

Not sure on that one'

Lawrence Said:

Writing prompt generators?

We Answered:

I don't know of any for the computer, but I know two awesome prompt books.

1). The Pocket Muse

2). What If?

Peace.

Carmen Said:

JCreator problems! Please help me write a random number generator code!!!?

We Answered:

put the answers in a
class Magic8Ball {

private static String [] answers = {"Check back later", "Positively"...

main() {
Scanner
while( true ) {
Sys.out("Type a question)
sys.out( getAnswer() );
sys.out("Wanna do it again?
if( sc.nextLine().equalsIgnoreCase("n") )
break;
}
}
make a method...
static private String getAnswer() {
java.util.Random r = new java.util.Random();
int magicNum = r.nextInt( answers.length );

return answers[ magicNum ];
}

Christine Said:

Is there software for writing in the comic strip format?

We Answered:

Quit being lazy and make up your own instead of borrowing from other people.

Discuss It!