New course! Every coder should learn Generative AI!
Try a free lesson+ 7
how correctly to compose a random command by an algorithm in js
how correctly to compose a random command by an algorithm in js
22 Answers
+ 8
Мне жаль, я не знаю, что вы хотите с этим сделать. Я не думаю, что могу очень помочь. Попробуйте изучить пример, который вы показали мне, и посмотреть, что они сделали, чтобы получить результат, который вы хотите
+ 7
why not :) ?
+ 6
Animated Box
https://code.sololearn.com/WItEV7e2rXRj/?ref=app
+ 6
Thats, okay. So whats the thing you want the box to do?
+ 5
hey is this what you wanted, i fixed a couple of things up.
https://code.sololearn.com/WItEV7e2rXRj/?ref=app
+ 4
So your going for a program that selects a random command, from a list of commands?
like....:
myCommands = ["alert ('hi')", "alert ('bye')"]
eval (myCommands [someRandomNumber])
+ 4
The order that they are shown is not random. The order that you create them in the code is the order that they will be on the page. Look here and notice how each text element is shown as specified in the code
https://code.sololearn.com/WiI50jwzRH4h/?ref=app
+ 4
почему вы сразу не говорили со мной на русском , я уже устал гуглить в переводчике?)
+ 3
random appearance of the box to 1 box came down the other appeared in a random place
+ 3
Is there any code i can look at?
+ 3
is it clear now?
+ 3
What do you mean by fall?
+ 3
sorry,no
+ 3
You wanted the box to move down the screen right?
+ 2
Well? but I need the boxes to fall
+ 2
вы мне отвечали на английском) а я его не знаю
+ 2
ну если чуть чуть знаю)
+ 1
it is necessary that they fall down from the top in a random place