Re: Random Password
- Posted by Rolf Schröder <Rolf.Schroeder at desy.de> Jul 30, 2004
- 545 views
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 | ----------------------------------------------------