Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
anyone could help me please?
The quicker way I can think right now is something like that:
number = ""
for i = 1 to 16
number = number & str(int(random(10))
next
This gives you a 16 digits string from 0 to 9.
what that mean "for i " ??
Develop games in your browser. Powerful, performant & highly capable.
It is the classic way of representing a loop,
It is the for loop in C2 that you will use in your case, you can also just use a repeat 16 times loop.
Also you will have, before running the loop, to set number to "".
The quicker way I can think right now is something like that: number = "" for i = 1 to 16 number = number & str(int(random(10)) next This gives you a 16 digits string from 0 to 9.
Thankss That's Work!
> what that mean "for i " ?? > It is the classic way of representing a loop, It is the for loop in C2 that you will use in your case, you can also just use a repeat 16 times loop. Also you will have, before running the loop, to set number to "".
> what that mean "for i " ??
>
Thanks for answering