2013-12-04, 02:26 AM
2013-12-04, 05:45 AM
20, pl0x
2013-12-04, 09:11 AM
Added all above. Only 5 Slots left now.
2013-12-04, 11:09 AM
I can see 6 left (1,2,4,10,11,15).
Also, title states 2 domain giveaway whereas description states "3 Winning Numbers" :o
What if random.org repeats the winning numbers? Like these:
Anyway, book 15 for me please ...
Also, title states 2 domain giveaway whereas description states "3 Winning Numbers" :o
What if random.org repeats the winning numbers? Like these:
Anyway, book 15 for me please ...
2013-12-04, 11:20 AM
(2013-12-04, 11:09 AM)effone Wrote: [ -> ]I can see 6 left (1,2,4,10,11,15).
Also, title states 2 domain giveaway whereas description states "3 Winning Numbers" :o
Title says it's a second Domain Giveway I believe Anurag meant on that.
2013-12-04, 11:40 AM
Oh! I See ...
It appeared confusing to me. Should be "Second Domain Giveaway".
Anurag, you should use this function to omit duplicates:
It appeared confusing to me. Should be "Second Domain Giveaway".
Anurag, you should use this function to omit duplicates:
$limitlow = 1; // Lowest range
$limithigh = 20; // Highest range
$numcount = 3; // Numbers required
// above variables to capture from form submission : $_POST['name']
$randnum = array(); // Initial blank generated number array
$j = 0; // This is the loop run counter
for($i=0;$i<$numcount;$i++){
$j++;
$num = rand($limitlow, $limithigh);
if(!in_array($num, $randnum)){ // <<<=== This check omits the number repeat
$randnum[] = $num;
} else {
$i--;
}
}
$randnum = implode(',',$randnum);
echo 'Loop ran to generate numbers: '.$j.'<br>';
echo 'Winning numbers are: '.$randnum;
2013-12-04, 12:06 PM
(2013-12-04, 11:09 AM)effone Wrote: [ -> ]I can see 6 left (1,2,4,10,11,15).
Also, title states 2 domain giveaway whereas description states "3 Winning Numbers" :o
What if random.org repeats the winning numbers? Like these:
Anyway, book 15 for me please ...
Yes you are right, sorry about that. Added you. Now there is 5.
Also for the giveaway, I will record the video and upload it to youtube for being fair, while generating, If a number comes twice after generating, I will run it again until I find three different integers for the giveaway. If a number repeats in a result, all the numbers will be cancelled and I will run it again.
2013-12-04, 01:58 PM
I choose 10
2013-12-04, 03:05 PM
I'll take the number 11 please and thank you.
2013-12-05, 01:20 AM
Two please!