BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Blockchain Exam CBDE Topic 4 Question 85 Discussion

Actual exam question for Blockchain's CBDE exam
Question #: 85
Topic #: 4
[All CBDE Questions]

To generate a random number:

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Caren
5 months ago
I beliCaren it's not possible to have true randomness in a deterministic environment like the Ethereum blockchain.
upvoted 0 times
...
Melynda
5 months ago
I think using the RANDAO smart contract is the most reliable option.
upvoted 0 times
...
Domingo
5 months ago
I prefer using the block hash for random number generation.
upvoted 0 times
...
Irving
5 months ago
I agree with Amber, the block timestamp is always changing.
upvoted 0 times
...
Amber
5 months ago
I think it's good to use the block timestamp for randomness.
upvoted 0 times
...
Teddy
6 months ago
I see your point, but using the block timestamp could be susceptible to manipulation.
upvoted 0 times
...
Suzi
6 months ago
I don't think we can have true randomness in a deterministic environment like the Ethereum blockchain.
upvoted 0 times
...
Carmela
6 months ago
Actually, I prefer using the RANDAO smart contract for generating random numbers.
upvoted 0 times
...
Alexia
6 months ago
I disagree, I believe it's better to use the block hash as it's clearly very different.
upvoted 0 times
...
Mitsue
7 months ago
I think it's good to use the block timestamp because it's always different.
upvoted 0 times
...
Luisa
7 months ago
Hah, good point, Justine! I think that's the problem with a lot of these options - they might seem random on the surface, but there could be ways to game the system. I'm not sure there's a perfect solution here.
upvoted 0 times
...
Justine
7 months ago
Personally, I'm leaning towards option B. The block hash is always different, so it seems like a good source of randomness to me. *chuckles* Although I guess if someone can predict the block hash, it wouldn't be so random, would it?
upvoted 0 times
...
Tommy
7 months ago
Yeah, Herman's got a point. I think the RANDAO contract is a pretty good solution. It's been used quite a bit in the Ethereum ecosystem, so it must be doing something right.
upvoted 0 times
Melissa
6 months ago
I think using the block hash is even better, as it's clearly always very different.
upvoted 0 times
...
Loreta
6 months ago
But isn't using the block timestamp also a good option? It's always different.
upvoted 0 times
...
Alberto
6 months ago
I agree, using the RANDAO smart contract seems like a reliable way to generate random numbers.
upvoted 0 times
...
...
Herman
7 months ago
I'm not so sure about that, Sherill. What about option C, the RANDAO smart contract? I've heard that can be a pretty reliable way to generate random numbers on the blockchain.
upvoted 0 times
...
Sherill
7 months ago
I agree with you, Gary. I'm not sure there's an easy answer here. But I think option D might be the most accurate - it's probably not possible to have a completely random number on the Ethereum blockchain.
upvoted 0 times
...
Gary
8 months ago
Hmm, this is an interesting question. I'm not sure how I feel about it, to be honest. Generating a truly random number in a deterministic environment like the Ethereum blockchain does seem like a bit of a challenge.
upvoted 0 times
...

Save Cancel