FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


lottery ^^





endless
well, since the lottery of *doesn't klnow the name* wasn't really a succes, i throw my try at it.

there are 25 entries, you must pay 20 frih$ to enter,
the 1st price is 225 frih$ second price 150 frih$ and 3rd price is 75 frih$

1.
2. Aredon
3.
4.
5.
6.
7. InsanePL
8.
9.
10.
11.
12. Rvec
13. Genesiz
14.
15.
16. Ratmaster
17.
18.
19. Adeydas
20.
21.
22.
23.
24.
25.

and if someone with 300 posts or more, can make a random number generator between 1-25, that would be nice... otherwise i need to put em in a hat. c rvec 2007 - 2008

when you pay, please say the number you want. for example: paid, and i want number 17, then u become no 17 on the list. i update the liste everday, when im outta school.
doppleganger
dude does this thing actually work
truespeed
Javascript lotto code

Put this bit in your header

Code:
<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function numbers() {
var nummenu = document.lotto.numbercount;
var numbercount = nummenu.options[nummenu.selectedIndex].value*1;
var maxnumbers = document.lotto.maxnum.value*1;
if (numbercount > maxnumbers) {
alert("Be sure to select a max lottery number value!");
}
else {
var ok = 1;
r = new Array (numbercount);
for (var i = 1; i <= numbercount; i++) {
r[i] = Math.round(Math.random() * (maxnumbers-1))+1;
}
for (var i = numbercount; i >= 1; i--) {
for (var j = numbercount; j >= 1; j--) {
if ((i != j) && (r[i] == r[j])) ok = 0;
   }   
}
if (ok) {
var output = "";
for (var k = 1; k <= numbercount; k++) {
output += "Number " + k + " = " + r[k] + "\n";
}
document.lotto.results.value = output;
}     
else numbers();
   }
}
//  End -->
</script>


and this bit in the body

Code:
<form name="lotto">
<table width=100% border=0>
<tr>
<td align=center>Pick
<select name="numbercount">
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">5
<option value="6" selected>6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select> 

numbers<br>
from 1 through <input type=text name=maxnum value="49" size=2 maxlength=2><br>
<input type=button value="Pick Numbers" onClick="numbers()">
<p>
<textarea name="results" rows=11 cols=15></textarea>
</td>
</tr>
</table>
</form>


Iv'e not looked at it properly but you should be able to edit the code to choose a single number. Im not sure if this is what your looking for though.
endless
well i **** at java script... thats why i asked to make it for me

and yes, this works, you can enter , and win frih
Genesiz
Go on then. I've sent you the FRIH$, and i'll go for lucky number 13.

Is there going to be a time limit or something.
endless
endless wrote:
well, since the lottery of *doesn't klnow the name* wasn't really a succes, i throw my try at it.

there are 25 entries, you must pay 20 frih$ to enter,
the 1st price is 225 frih$ second price 150 frih$ and 3rd price is 75 frih$

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13. Genesiz
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.

and if someone with 300 posts or more, can make a random number generator between 1-25, that would be nice... otherwise i need to put em in a hat. c rvec 2007 - 2008

when you pay, please say the number you want. for example: paid, and i want number 17, then u become no 17 on the list. i update the liste everday, when im outta school.


depends, what would be a good time limit?
Genesiz
Whatever you deem acceptable. I only suggest a time limit so that the contest doesn't go on for ages, until all 25 numbers are filled.

But its your contest, so its up to you.
endless
yea ok, time limit is 2 weeks, and if not everthing is filled, i just changes price, i dont care about the profit Rolling Eyes
Aredon
I've sent you payment. I'll take #2.

Can I buy more than one ticket?
endless
if the time limit is over, and not all spots are filled, you get an option to buy an extra ticket, they will cost 30 frih thou, since you egt bigger change to win.

list updated ^^
Genesiz
endless wrote:
if the time limit is over, and not all spots are filled, you get an option to buy an extra ticket, they will cost 30 frih thou, since you egt bigger change to win.

list updated ^^

Umm not really. If you have to pay an extra 30 FRIH$, then the average cost per ticket becomes more (25 f$ rather than 20 f$). In other words, you are having to pay extra for the same thing. If you buy two, you have twice the chance, so really the second ticket should cost you the same.

You're call though.
endless
Genesiz wrote:
endless wrote:
if the time limit is over, and not all spots are filled, you get an option to buy an extra ticket, they will cost 30 frih thou, since you egt bigger change to win.

list updated ^^

Umm not really. If you have to pay an extra 30 FRIH$, then the average cost per ticket becomes more (25 f$ rather than 20 f$). In other words, you are having to pay extra for the same thing. If you buy two, you have twice the chance, so really the second ticket should cost you the same.

You're call though.


ok, the first 2 bickets you buy extra are 20 frih, after thgat they become 25 frih$
InsanePL
Gimme my lucky "7" Smile, I`m just transfering you FRIH$

BTW. is there time limit ? or lottery start when ppl buy all slots ?
Ratmaster
I'll buy #16. Sending frih$ now.
Wow, I actually got to post this; first time, FireFox shuts down, second time, computer freezes, whatever.
endless
endless wrote:
well, since the lottery of *doesn't klnow the name* wasn't really a succes, i throw my try at it.

there are 25 entries, you must pay 20 frih$ to enter,
the 1st price is 225 frih$ second price 150 frih$ and 3rd price is 75 frih$

1.
2. Aredon
3.
4.
5.
6.
7. InsanePL
8.
9.
10.
11.
12.
13. Genesiz
14.
15.
16. Ratmaster
17.
18.
19. Adeydas
20.
21.
22.
23.
24.
25.

and if someone with 300 posts or more, can make a random number generator between 1-25, that would be nice... otherwise i need to put em in a hat. c rvec 2007 - 2008

when you pay, please say the number you want. for example: paid, and i want number 17, then u become no 17 on the list. i update the liste everday, when im outta school.


there is a 2 week time limit, but the price there is if all spots are filled, if not all spots are filled, i make an reasonable price. f.e

10 dudes bougth ticket, tahts 200 frih, so i would make the price 90frih$ 65 frih$ 40 frih$
endless
im closing it, and firh sent back btw.
mtorregiani
Why?
I was about to buy the number 8... Laughing
Genesiz
Well, the contest had been on for over two weeks, which endless set as the time limit. And, seeing as only a few of the spots were taken, i'm not suprised he decided to end it rather than selling off the rest of the spots. They obviously weren't going to sell quick enough so.....
DanielXP
I'll buy 17, as 16 is taken i can't get my age Evil or Very Mad so i will get the next one Razz
Genesiz
endless wrote:
im closing it, and firh sent back btw.

The contest has been closed.
Related topics
Reply to topic    Frihost Forum Index -> Miscellaneous -> Contests

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.