|
I am currently writing code to construct a game for android devices, however part of my code requires rotating numbers to create random choices, missions, stars etc. However I am fairly new to coding and although I understand quite a bit of it, this has me completely stumped. I am writing this in Javascript/Unityscript Currently my code is as follows, at least where I am stuck that is... I should also mention that I do not want to use the Rand keyword as that will create too many random elements, this is meant to be a controlled reaction, Think of it as rotating an object by so many degrees, but each time you do it, it changes shape slightly.
(comments are locked)
|

I am missing the random part here - what makes your result random?
You can control what random gives you. You could random between how many elements you'd like. Even 1 for that matter (which would practically result in nothing random of course).