[Past Event] Three-Body Tech - SoundBytes - Heavier7Strings Giveaway

User avatar
Alvsvartr
Posts: 37
Joined: Mon Dec 11, 2017 5:40 pm

Re: Three-Body Tech - SoundBytes - Heavier7Strings Giveaway

Postby Alvsvartr » Tue Dec 19, 2017 6:50 am

Let's get a try ;)
MAXAMP
Posts: 3
Joined: Wed Dec 20, 2017 6:56 pm

Re: Three-Body Tech - SoundBytes - Heavier7Strings Giveaway

Postby MAXAMP » Wed Dec 20, 2017 8:20 pm

---> Posting to WIN!!! <--- 8-) 8-) 8-)
TrojakEW
Posts: 3
Joined: Thu Dec 21, 2017 7:01 am

Re: Three-Body Tech - SoundBytes - Heavier7Strings Giveaway

Postby TrojakEW » Thu Dec 21, 2017 7:06 am

Really really good sounding inst. Hope I can get it too 8-)
User avatar
admin
Site Admin
Posts: 247
Joined: Thu Jul 21, 2016 8:59 am

Re: Three-Body Tech - SoundBytes - Heavier7Strings Giveaway

Postby admin » Mon Dec 25, 2017 5:41 am

The result is here! Our 3 lucky winners are: iScream, tommygunster, TrojakEW.
Congratulations and enjoy H7S!The serial number has been sent to your email.

We used MT19937 pseudo random number generator, and used the Epoch second number on time 2017-12-25 00:00.00 as seed.
The winners are generated from following procedure:
1: a random number between 2 and the number of participants is generated, it is used as the times of shuffling.
2: each participant is assigned with an ID according to their reply in the activity post. Duplicate ones are removed.
3: shuffling is performed by previously decided times, the first 3 IDs in resultant shuffled list are selected as winner.
The shuffling and random generator in C++11 standard library was used. The source code was compiled by GCC 6.3.0.

See blow for source code:

#include <algorithm>
#include <iostream>
#include <random>
#include <vector>

#define ACTION_DATE_EPOCH 1514160000
#define NUM_FETCH 3

int main()
{
std::vector<int> indices = {
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,


32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
};

// create pseudo random number generator
// initialize using the second number since Epoch of this Christmas
std::mt19937 prng;
prng.seed(ACTION_DATE_EPOCH);

// decide how many times to shuffle
// the number must be at least 2, otherwise the result has fixed prefix
std::uniform_int_distribution<int> dist(2, indices.size());
int times_shuffle = dist(prng);
std::cout << "shuffle " << times_shuffle << " times" << std::endl;

// do shuffle for that times
for (int i = 0; i < times_shuffle; i++)
std::shuffle(indices.begin(), indices.end(), prng);

// tell result
for (int i = 0; i < NUM_FETCH; i++)
{
std::cout << indices[i] << std::endl;
}
}


Merry Christmas and Happy New Year!
dreamweaver1873
Posts: 9
Joined: Fri Nov 24, 2017 4:21 am

Re: Three-Body Tech - SoundBytes - Heavier7Strings Giveaway

Postby dreamweaver1873 » Mon Dec 25, 2017 6:48 am

Congrats to the winners ... Merry Christmas ! I'm going to go and drown my sorrows.. sniff sniff :|
TrojakEW
Posts: 3
Joined: Thu Dec 21, 2017 7:01 am

Re: Three-Body Tech - SoundBytes - Heavier7Strings Giveaway

Postby TrojakEW » Mon Dec 25, 2017 7:00 am

:o :o Oh
Thank your for this awesome christmas gift. It is first time in my life I have actually win anything. Going to use it very soon. Again Thank you.
iScream
Posts: 2
Joined: Mon Nov 20, 2017 5:07 pm

Re: [Past Event] Three-Body Tech - SoundBytes - Heavier7Strings Giveaway

Postby iScream » Thu Dec 28, 2017 7:41 pm

Forgot to say thank you for this christmas gift! This is my first time I won something too. Happy holidays to all! :o :D :)

Return to “Events”