Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Making a rand letter?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Velocity




PostPosted: Wed Nov 16, 2011 7:43 pm   Post subject: Making a rand letter?

How do you do randint but instead of a number it generates a random letter a - z?
What is the special code to doing this?
Help please Smile
Sponsor
Sponsor
Sponsor
sponsor
[Gandalf]




PostPosted: Wed Nov 16, 2011 7:46 pm   Post subject: RE:Making a rand letter?

code:
chr(Rand.Int(1, 255))

chr() returns the ASCII value of the integer passed to it.
Velocity




PostPosted: Wed Nov 16, 2011 8:20 pm   Post subject: RE:Making a rand letter?

ty gandalf... lol nice name
[Gandalf]




PostPosted: Wed Nov 16, 2011 9:10 pm   Post subject: RE:Making a rand letter?

No problem. You are pretty badass yourself, having joined on 11/11 and being user 111111. Wink
Velocity




PostPosted: Wed Nov 16, 2011 9:37 pm   Post subject: RE:Making a rand letter?

lol really? thats so cool !
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: