Emulate Minecraft's seed selection system.
npm install mcseed
const mcseed = require("mcseed");
mcseed(); // Random seed (blank seed box)
//=> -47201340728604373n
mcseed(12345); // Numerical seed
//=> 12345n
mcseed("abc"); // Text seed
//=> 96354n
For random seeds, the generated number could be higher than what javascript supports with the native Number object. Therefore, BigInt is essential to store the full seed.
Type: string | number
The seed to input in the "seed box".