Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
NounsToken pseudo-random seed generator
copy icon
Nouns-DAO
• version 1.0.0
Utility
ERC721

NounsToken pseudo-random seed generator

Generate a pseudo-random Noun seed using the previous blockhash and noun ID.

*Visit desktop site to download or deploy

Version

1.0.0

Creator

Nouns-DAO

Recent Use

🍞 0xA8F0 saved
🥐 0xA8F0 downloaded
🥖 0x77CA downloaded

Last Publish

10/17/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
generateSeed(uint256) :
This function generates a random seed for a given nounId and descriptor. It does this by taking the keccak256 hash of the blockhash of the previous block and the nounId, and then using the resulting pseudorandomness to generate a seed with a background, body, accessory, head, and glasses. The seed is generated by taking the modulo of the pseudorandomness and the corresponding count for each item. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i nouns-seed-generator
copy icon

Recent Use

🍞 0xA8F0 saved
🥐 0xA8F0 downloaded
🥖 0x77CA downloaded

Last Publish

10/17/2022

Version

1.0.0

Creator

Nouns-DAO

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.