0

Hello,

Is there someway that I can randomly assign an x y and z axis to a geometirical object?

Any programming language is fine just need some insight.

Thank you,

Suhail Rawal

3
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by sirlink99
0

What values of x, y and z do you need?
Are those the only 3 numbers or are there more?
Where will you get those values from?

0

for example you can type

int x = Math.round (Math.random () * 100); // will generate a number between 0 and 100

Then you can use that x variable to print your square, cube, text, etc. on the screen at the generated value.

You can do the same for the y and the z axis.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.