• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

checking a condition

 
amit jasoria
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ! Can anyone help me with this. I need to check the sum of two random number ceated between 1 and 10 , and if the sum is < 10 display it in a activity else regenerate next two random numbers and recheck it. Thanks
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you have so far? If you haven't started, what ideas have you had?
 
amit jasoria
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for responding. I simply want to generate two random intigers and display them via Textview if there sum is less then 10 else regenerate the integers
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I understood that from your question. So what are the answers to my questions?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic