/    Sign up×
Community /Pin to ProfileBookmark

Tournament Number holding..thing…request..

Well, I don’t know anything about codes…So ummm, can anyone make me a code for drawing a number 1-16, and eliminating the number after it’s been chosen once. So like, I get 6 the first time, then I can’t get 6 again….

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@7studMar 28.2005 — Sure, I charge $125/hr, and I require a $250 deposit to my Paypal account to get started.
Copy linkTweet thisAlerts:
@TergauthorMar 29.2005 — errr someone willing to do it for free? >_>
Copy linkTweet thisAlerts:
@Willy_DuittMar 29.2005 — Here's something I have lying around from a random banner script...

<i>
</i>&lt;script type="text/javascript"&gt;
&lt;!--// Written by: [email protected] \;
function randomNumber(maxNumber,howmany){
var theNumbers = [], display = '';
var randNumber = Math.round(Math.random()*maxNumber+1);
while(theNumbers.length &lt; howmany){
for(var count=0; count &lt; theNumbers.length; count++){
while(randNumber == theNumbers[count]){
randNumber = Math.round(Math.random()*maxNumber+1);
count = 0;
}
} theNumbers.push(randNumber);
display += '&lt;b&gt;'+(count+1)+'&lt;/b&gt;: '+theNumbers[count]+'&lt;br&gt;';
} document.write(display);
} randomNumber(16,16);
//--&gt;
&lt;/script&gt;


.....Willy
Copy linkTweet thisAlerts:
@TergauthorMar 29.2005 — Thank you!!!
×

Success!

Help @Terg spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...