joelhcool over 1 year ago

Generate Random Numbers in Solidity

Is there a way to generate random numbers in solidity? I just want a way to get a random number and that is not dependent on any user input. more

Karma symbol 35
Total Karma earned answering this question
Up gray arrow normal 1
Total Votes for this question
Speach bubble 2
Total Comments to this question

sl.brentley over 1 year ago

What kind of smart contract...?

what kind of smart contract is needed to build a jukebox-like music dapp? point in the direction please. more

Karma symbol 25
Total Karma earned answering this question
Up gray arrow normal 1
Total Votes for this question
Speach bubble 2
Total Comments to this question

achyutjosh1995 over 1 year ago

CryptoZombie - Lesson 4 Chapter 4 : Generating random number in a secure way

```// Generate a random number between 1 and 100: uint randNonce = 0; uint random = uint(keccak256(now, msg.sender, randNonce)) % 100; randNonce++;... more

Karma symbol 50
Total Karma earned answering this question
Up gray arrow normal 6
Total Votes for this question
Speach bubble 2
Total Comments to this question

scp94373 about 1 year ago

Enum and Struct IDs/ Random number

Okay so... I would like to choose a random struct to use for when a player signs up to my game, each struct is a different 'animal'. So as far as I... more

Karma symbol 5
Total Karma earned answering this question
Up gray arrow normal 1
Total Votes for this question
Speach bubble 2
Total Comments to this question

tmyngu11 about 1 year ago

Random numbers in Loom

So we all know that generating random numbers in the ethereum blockchain is unreliable, but would generating random numbers in the loom network be ... more

Karma symbol 0
Total Karma earned answering this question
Up gray arrow normal 2
Total Votes for this question
Speach bubble 2
Total Comments to this question