aboutsummaryrefslogtreecommitdiff
path: root/src/lib/rules/group.js
blob: 60cca55497d83418b5415c2d120e2fbb7783a2dd (plain)
1
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
const internals ={

  groups: [
    'teenagers',
    'influencers',
    'vegans',
    'tik-tok users',
    'lactose intolerants',
    'households',
    'ice cream vendors',
    'babies',
    'police officers',
    'drug dealers',
    'tech workers',
    'cryptocurrency miners',
    'mexicans',
    'smokers',
    'drug users',
    'octogenarians',
    'public officials',
    'atheists',
    'god fearing parishioners',
    'b-list actors',
    'jugglers',
    'seagulls',
    'lighthouse operators',
    'tram drivers',
    'psychics',
    'magicians',
    'classically trained musicians',
    'food delivery drivers',
    'librarians',
    'doctors',
    'vaccinated cats',
    'balloon artists'
 ],
};

export default function () {

  const countA = Math.floor(Math.random() * 8) + 2;
  const magnitude = Math.random() > 0.5 ? 99 : 5;
  const countB = Math.floor(Math.random() * magnitude) + 1;
  const groupA = internals.groups[Math.floor(Math.random() * internals.groups.length)];
  const groupB = internals.groups[Math.floor(Math.random() * internals.groups.length)];

  return {
    emoji: '👨',
    text: `No more than ${countA} ${groupA} + ${countB} ${groupB} are allowed to meet`
  };
}