randomize determined by day alone, not order of execution as well

This commit is contained in:
Alexander Bocken 2023-07-12 09:51:33 +02:00
parent 8441a434d1
commit c6b82865d4
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -9,9 +9,9 @@ function mulberry32(a) {
return ((t ^ t >>> 14) >>> 0) / 4294967296;
}
}
let rand = mulberry32(seed)
export function rand_array(array){
let rand = mulberry32(seed)
array.sort((a,b) => 0.5 - rand())
return array
}