Write a code using Ruby ​:

label Programming
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5

Write a code using Ruby :

Create a program which generates a random number (1 - 100) by looking into rubydoc.org and using that rondom number, find if the number is lucky number(77).if you get a lucky number, then print that you are winner if not, try again.

Oct 2nd, 2015

Thank you for the opportunity to help you with your question!

x=rand(0..100)

if x==77

puts "you are winner"

else

puts "try again"

Please let me know if you need any clarification. I'm always happy to answer your questions.
Oct 4th, 2015

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Oct 2nd, 2015
...
Oct 2nd, 2015
Oct 21st, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer