how correctly to compose a random command by an algorithm in js | Sololearn: Learn to code for FREE!
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

8th May 2018, 2:38 AM
oTARANo
oTARANo - avatar
22 Answers
+ 8
Мне жаль, я не знаю, что вы хотите с этим сделать. Я не думаю, что могу очень помочь. Попробуйте изучить пример, который вы показали мне, и посмотреть, что они сделали, чтобы получить результат, который вы хотите
8th May 2018, 4:28 AM
redacted
redacted - avatar
+ 7
why not :) ?
8th May 2018, 4:30 AM
redacted
redacted - avatar
8th May 2018, 4:15 AM
redacted
redacted - avatar
+ 6
Thats, okay. So whats the thing you want the box to do?
8th May 2018, 4:23 AM
redacted
redacted - avatar
+ 5
hey is this what you wanted, i fixed a couple of things up. https://code.sololearn.com/WItEV7e2rXRj/?ref=app
8th May 2018, 3:56 AM
redacted
redacted - avatar
+ 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])
8th May 2018, 3:18 AM
redacted
redacted - avatar
+ 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
8th May 2018, 4:02 AM
redacted
redacted - avatar
+ 4
почему вы сразу не говорили со мной на русском , я уже устал гуглить в переводчике?)
8th May 2018, 4:29 AM
oTARANo
oTARANo - avatar
+ 3
random appearance of the box to 1 box came down the other appeared in a random place
8th May 2018, 3:38 AM
oTARANo
oTARANo - avatar
+ 3
Is there any code i can look at?
8th May 2018, 3:41 AM
redacted
redacted - avatar
+ 3
is it clear now?
8th May 2018, 3:53 AM
oTARANo
oTARANo - avatar
+ 3
What do you mean by fall?
8th May 2018, 4:06 AM
redacted
redacted - avatar
+ 3
sorry,no
8th May 2018, 4:16 AM
oTARANo
oTARANo - avatar
+ 3
You wanted the box to move down the screen right?
8th May 2018, 4:22 AM
redacted
redacted - avatar
+ 2
Well? but I need the boxes to fall
8th May 2018, 4:04 AM
oTARANo
oTARANo - avatar
+ 2
вы мне отвечали на английском) а я его не знаю
8th May 2018, 4:31 AM
oTARANo
oTARANo - avatar
+ 2
ну если чуть чуть знаю)
8th May 2018, 4:32 AM
oTARANo
oTARANo - avatar
+ 1
it is necessary that they fall down from the top in a random place
8th May 2018, 3:57 AM
oTARANo
oTARANo - avatar