Re: Random Password

new topic     » goto parent     » topic index » view thread      » older message » newer message

Alex,

You must use 'printf()' instead of puts() to use '%d'. 'puts()' is for
strings only.

Try this instruction:

 printf(1,"%06d\n",{rand(999999)})

and please look up the description for 'printf'.

Have a nice day, Rolf



----------------------------------------------------
| Dr.Rolf Schröder |    E                     B    |
| DESY MST-1       |                C              |
| Notkestraße 85   |          D                    |
| D-22603 Hamburg  |                      A        |
| Earth            |-------------------------------|
| Solar System     | Phone : +49-40-8998-2628      |
| Milky Way        | Fax   : +49-40-8994-2628      |
| Local Group      | mailto:Rolf.Schroeder at DESY.de |
| Known Universe   | http://adweb.desy.de/~rolf    |
----------------------------------------------------

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu