Can you help me understand why my code is wrong?

1 Answer

Answer :

OK I was right about what was causing it. I added a brief sleep between each random number generation. If someone has a better suggestion, my ears are open.

Related questions

Description : Can you help me understand why my answer is wrong (system of differential equations, solved via eigenvectors)?

Last Answer : Ah, I think I figured it out, kind of. It seems the formula the professor gave us was wrong? I have a solution, but not via eigenvectors. Would still appreciate help if anyone can offer it.

Description : Can you help me understand this proof of countable infinity?

Last Answer : answer:Although I have not received this level of math course yet, here is my attempt: First, you must remember part of the definition of a function: no X value can be assigned to two or more Y values, ... two to figure out, so I'll post this answer now and then post another when I find the answer.

Description : Can you help me understand what a parabolic cylinder is in the context of this problem?

Last Answer : answer:I’m just guessing here, but it sounds to me that instead of a normal cylinder with a circular wall, the cylinder you’re looking at here is ovoid (if closed), meaning that sections of it would have a parabolic curved wall. Here are some examples, if it helps.

Description : How to understand credit- and debit cards? (more info inside)

Last Answer : Credit card – spending money you don’t have. Debit card – Like writing a check.. but digitally.

Description : When reading this book, should I write down ALL the words that I don't understand?

Last Answer : Yes, if your teacher is allowing you to have notes, you should write them down so you don’t fail. When I had tests like that, I wrote such detailed notes that it looked like I just copied down the whole book! I passed too. If it’ll help you, you should do it.

Description : How could I possibly write a 400 word essay in Danish when I do not understand anything at all?

Last Answer : Is this a class in Danish?

Description : Was there a subject in school you just couldn't understand?

Last Answer : Physics in high school, it was either because I didn’t pay attention at all in class or I just didn’t get it. Probably both.

Description : What would you do if a college professor had a strong accent and you could not understand him or her?

Last Answer : I think you should learn how to construct a sentence with a subject and a verb (!) before you criticize the way someone else talks. then when you’re done with that, you should read English with an Accent, by Rossina Lipp-Greene.

Description : My mom is trying to claim me on her taxes. Is this right or wrong?

Last Answer : answer:If H&R Block is helping you with your taxes they should also know to advise you that you CAN file via paper and mail it in - and then the IRS will investigate the two filings (your mother ... office) and request their advice on next steps. They should suggest the paper filing as a next step.

Description : Is it wrong for me to put articles in a Resources page that I read but didn't cite in my paper?

Last Answer : I believe it is a good idea to include them. Sometimes when we read books we subconsciously remember a phrase or a thought that we use in our writings later. If you want to be super clear (and if your ... , ask your teacher, they're the ones marking it so whatever they want is what you should do :)

Description : Is it wrong not to play your a game in life until it's worth it?

Last Answer : Sounds like you are asking if its wrong to not give your all unless it really matters. For example, not turning in any work that doesn't count for your grade, and only doing required material, or just not ... It took me a few reads of your question to understand that it's A-game not a game

Description : Interview with a former school shooter, right or wrong?

Last Answer : answer:Harless believes none of these, he said. Asked what he thinks might prevent shootings: Nothing, he said. At the end of the day, there are no preventable measures. It's human nature. Toss his ... you can't prevent it. But you can make it harder for people to spray 30 bullets in a second.

Description : A 10 yr old kid shoots 6 classmates with a BB gun...what is wrong with this picture?

Last Answer : Difficult situation. Again, I believe parents should be held to a greater degree of accountability for the actions of the children they raise. Though no professional psychologist would ever dare recommend it, I believe there is a time and place where public shame may be worth considering.

Description : Is there something wrong with my studying habits?

Last Answer : Do you want us to tell you that you are gifted?

Description : How do you submit your code projects to your professor?

Last Answer : zip the files and ftp or email if possible.

Description : Do you feel that this dress is in violation of this dress code?

Last Answer : Huh? That dress is just above the knee. I would ask the Administrator what they are smoking.

Description : I understand what the PL/SQL code below is supposed to do, but when I run the code, it won't compile. Can anybody help with why this is so?

Last Answer : answer:PL\SQL really isn’t my thing, but I believe you need something between the first IF statement and the ELSIF. What do you want it to do with the number if it is 50 or 90?

Description : Trying to understand the San Francisco building eletrical and/or fire code.

Last Answer : answer:Section 504 (e) of the building code says: Every habitable room shall have at least one electrical convenience outlet and every kitchen shall have at least two electrical convenience outlets; or ... for each 12 feet of continuous counter and for each separate counter area. Good Luck!

Description : I am a puzzle with a wordy facade. There's always an answer, even if it seems odd. Only the clever can understand my code. If you don't answer, then you'll never know. What am I? -Riddles

Last Answer : A riddle.

Description : Please help me come up with a thesis for my essay Nature verses Nurture?

Last Answer : Unless your assignment is different than you described (for example, if you were told to write about a smaller issue that is related to the nature vs. nurture debate), then taking a side pretty much ... which a person is raised has more of an impact on someone's personality than their genetics ).

Description : Can you help me come up with a Halloween themed baked good that I can make for a bake sale?

Last Answer : What 12–13 yr old would not go nuts for a Dirt Cupcake

Description : Will you help me help this kid?

Last Answer : Precisely what kind of tutoring have you been asked to do? How often do you meet?

Description : I need help with this girl. Please help me before tomorrow!

Last Answer : Just keep it friendly, and keep talking to her. Let it evolve naturally. And please, don’t play games. When the other person realizes what you’re doing, they feel stupid. That can be a deal breaker.

Description : Please can you lovely people help me come up with some fun and novel ways of helping to raise money for charity?

Last Answer : answer:The most useful thing I’ve learned in fundraising is, get the guys that work for corporations who match to donate (banks are huge in matching). Usually, they will donate a few hundred at a time and then the company will match it to double it. It’s the quickest way!

Description : Can you help me with the wording in this note?

Last Answer : You could give your kid the 9 invitations to hand out, without names on them.

Description : Can you help me with these vocabulary sentences?

Last Answer : I think you want “disappeared,” not dissipated. Dissipated implies it kind of disappeared without human agency, which is not the case. It’s as if it evaporated, and we all know it was eaten.

Description : Can you help me with this linear model question?

Last Answer : No it’s for my algebra class.

Description : Can somebody help me with my reccomendation dilemma?

Last Answer : ‘If he knows you worked hard and you’re on good terms with him, go for it, not all recommendations have to come from a class you aced. They come from teachers you showed a good work ethic and dedication to.

Description : Can you help me correct my essay?

Last Answer : Take out phrases like “so as you can see” and “so you can imagine.”

Description : Can you help me with an urgent family problem?

Last Answer : Have you already made an appointment with a child psychologist?

Description : What careers let me travel and help people?

Last Answer : Just a guess but flight attendant would work.

Description : Can you help me figure out what my grade will be?

Last Answer : A- is my guess.

Description : Please help me with this controversial prom issue!

Last Answer : Say the truth, don't lie or stretch anything and tell them whatever happened. Tell the cops that she is blackmailing him, the cops are protecting her probably because she exxagerated and lied to get their ... She sounds like a total bitch. I don't see how this would stop him from graduating though.

Description : Who wants to help me practice deconstructionism?

Last Answer : Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.

Description : Can you help me find an article about World War 1?

Last Answer : Seriously? You can’t find any articles? Where have you looked?

Description : Can you help me develop some questions for my special needs survey?

Last Answer : This is fairly unclear as to what you need- what kinds of special needs? Are we talking mental health, physical health, economic issues?

Description : Can anyone help me with a demonstrative topic?

Last Answer : You could show them how to roll a joint.

Description : Can you help me solve this?(Not homework)

Last Answer : Try to solve it at Wolfram Alpha The tools are there.

Description : Can someone please help me with my final exam review?

Last Answer : Isn’t that cheating?

Description : Can anyone help me with a demonstrative topic?

Last Answer : You could show them how to roll a joint.

Description : Need help on finding research for a speech. Can anyone help me?

Last Answer : It’s hard to give facts on a group that doesn’t exist.

Description : Can you help me with this question on highlighting?

Last Answer : Use a different color, and if you wish to highlight a section already highlighted, then use your color in the margin next to the section you want to note.

Description : Help on convincing mom to let me transfer?

Last Answer : Why don’t you start out by asking your mom if you can transfer? You will never know for sure where you stand until you ask. Ask her, and if she says no, come back and maybe we can help you.

Description : Can a school guidance counsellor give me advice and help me with my mark in math?

Last Answer : Is there anyone in your class that might tutor you? Or you could study your buns off.

Description : I am in a serious cross roads here please help me?

Last Answer : (personal opinion) You are not their parent. They are not your responsibility. Being their guardian will ruin your life. You need to go to college, or join the military or whatever, and do what you ... guardian, and just be in their life when you can. Don't revolve your life around your siblings.

Description : Can someone help me with ideas on starting an autobiography?

Last Answer : Well, here’s a bunch of ideas for a first sentence.

Description : Can anybody help me find websites or information on Censorship and the case of Cissy Lacks?

Last Answer : Googling Cissy Lacks brings up 292,000 hits. Do none of them do it for you? The first hit is www.cissylacks.com

Description : Can someone help me locate this book I read when I was in primary school?

Last Answer : Wasn’t this a movie?

Description : Help me pick a book for my english project!

Last Answer : Faulkner – The Sound and the Fury One of my favorites!

Description : Does anyone want to help me with maple (math software)

Last Answer : Have you tried typing the equation into wolframalpha or another website/program that handles math equations? http://www.wolframalpha.com/input/?i=y’’%2Bsin%28xy%29%3D0