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

Username:   Password: 
 RegisterRegister   
 lottery
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
yodu123




PostPosted: Tue Mar 31, 2009 6:48 pm   Post subject: lottery

we are supposed to make a number generator using randint for a school project. i got the basics but i need some more futures to add to it. can anyone give me some add on ideas?
thnx
Sponsor
Sponsor
Sponsor
sponsor
tjmoore1993




PostPosted: Tue Mar 31, 2009 6:58 pm   Post subject: RE:lottery

For a lottery based program it would have a series of integers being randomly generated. Maybe make some sort of a gambling game out of it Smile
ecookman




PostPosted: Tue Mar 31, 2009 9:22 pm   Post subject: RE:lottery

choose a number and see if it matches the random one


prettymuch:
Turing:

 if randnum = usernum then
put "you win"
else "..fail the number was", randnum
end if
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  [ 3 Posts ]
Jump to:   


Style:  
Search: