command rand and functions
이전 댓글 표시
Hi guys I have this question as an assignment question can someone help out please thanks :)
Suppose you are at a casino playing roulette and that you are betting on black to turn up. You start by betting $1. If you win you bet another $1 in the next game. If you lose double your previous bet. You will stop playing when you have either won at least 10 or lost more than $100. By use of script file simulate this system.Then play the game 5000 times and record your performance.
Hint: use the command rand
댓글 수: 3
James Tursa
2013년 5월 9일
What code have you written or outlined so far?
Image Analyst
2013년 5월 10일
Isn't this a duplicate of http://www.mathworks.com/matlabcentral/answers/75245-for-those-who-love-a-challenge-no-2. If so, why?
Randy Souza
2013년 5월 24일
I have restored the original text of this question.
@Charlene: this question has an accepted answer, so it may be valuable to someone else in the future. If you have a good reason why it should be removed from MATLAB Answers, please flag the question, explain why it should be deleted, and an administrator or high-reputation contributor will consider deleting the question. Please do not simply edit your question away.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Board games에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!