Login | Register

Random Serial Number

August 28, 2007, 12:07 by death-droid
[loading]
-->
I made this code for me to make serials but then i ended up never using it.

So heres the code


number=""
repeat(35)
number+= floor(random(random(10)))
get_string("Heres your number",number)


What each code does from top to bottom

The first code sets the thing string which the number will appear/

The next one tells it to repeat the next line by the specified amount at the moment its set to 35 you can change this.

The next line tells it to add a random number to the string.

Then then the last one gets the string and displays it.

Hope you like it.

Comments

Loading comments... [loading]
.
Users logged in:

game maker articles, game maker examples, game maker tutorials, gmtutorials, game maker questions and answers, game maker crash course, how to create games