This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
// | |
// *Pass@!#4 | |
uint64_t xorshift64(uint64_t state){ | |
state ^= state << 13; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <array> | |
#include <random> | |
// more specifically this will be mt19937 | |
// constant f value used for 32 but mt19937 | |
#define f 1812433253 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class LootDecider<T> { | |
private final List<LootItem<T>> lootItems; | |
private double totalPercentage; | |
public LootDecider() { | |
lootItems = new ArrayList<>(); | |
totalPercentage = 0.0; | |
} |