New topic: Random Character Generator
<http://forums.realsoftware.com/viewtopic.php?t=45788> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message tseyfarth Post subject: Random Character GeneratorPosted: Fri Nov 02, 2012 12:56 am Joined: Sat Dec 04, 2010 9:14 pm Posts: 719 Hello all, I want to generate random characters (ascii). Is the best method to use the Random function, but limit it to 255 or better from/to printable character only? This BTW is for AES Insertion Value generation. Thanks, Tim Top MonkeybreadSoftware Post subject: Re: Random Character GeneratorPosted: Fri Nov 02, 2012 2:31 am Joined: Wed May 10, 2006 2:42 pm Posts: 2774 Location: Germany random bytes or random UTF-8 characters. That's no the same. First is to make a memoryblock and set .Int8Value() with rnd*256. Second is adding characters with encodings.utf8.chr(rnd*65535) Greetings Christian _________________ See you in Orlando, Florida for Real World 2012 More details and registration here: http://www.realsoftware.com/community/realworld.php Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
