]>
git.r.bdr.sh - rbdr/corona-regeln/blob - src/lib/rule_generator.js
1 import Rules
from './rules';
12 'the next day divisible by 7',
14 'next fiscal quarter',
23 export const generate
= async
function () {
25 const rule
= internals
.rules
[internals
.currentIndex
];
26 const time
= internals
.dates
[Math
.floor(Math
.random() * internals
.dates
.length
)];
27 internals
.currentIndex
= (internals
.currentIndex
+ 1) % internals
.rules
.length