Deal of The Day! 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 2 Question 103 Discussion

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

To generate a random number:

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Glory
3 months ago
Wait, you're telling me there's no 'random' button on the Ethereum blockchain? Guess I'll have to shake my laptop vigorously instead.
upvoted 0 times
Ben
2 months ago
D) it's not possible to have a random number in a deterministic environment such as the Ethereum blockchain.
upvoted 0 times
...
Tawna
2 months ago
C) it's good to use the RANDAO smart contract.
upvoted 0 times
...
Adelaide
2 months ago
B) it's good to use the block hash as this is clearly always very different.
upvoted 0 times
...
Kayleigh
3 months ago
A) it's good to use the block timestamp, as this is always different.
upvoted 0 times
...
...
Bulah
3 months ago
Option A is the way to go. Who needs true randomness when you've got the block timestamp? It's like rolling dice, but with extra steps!
upvoted 0 times
Laurel
2 months ago
Lezlie: Definitely, it adds a fun twist to the process.
upvoted 0 times
...
Wenona
3 months ago
User 3: I think it's a clever workaround for creating randomness in a deterministic system.
upvoted 0 times
...
Lezlie
3 months ago
User 2: It's like adding a little element of chance to the blockchain.
upvoted 0 times
...
Viva
3 months ago
User 1: I agree, using the block timestamp is a simple way to generate a random number.
upvoted 0 times
...
...
Emerson
4 months ago
I'm going with option C. The RANDAO smart contract is designed specifically for this purpose, so it must be the best choice.
upvoted 0 times
Ahmed
3 months ago
User3: Definitely a reliable option for randomness in Ethereum.
upvoted 0 times
...
Lindy
3 months ago
User2: Agreed, it's designed for generating random numbers.
upvoted 0 times
...
Roselle
3 months ago
User1: I think using the RANDAO smart contract is a good choice.
upvoted 0 times
...
...
Billi
4 months ago
I think option B sounds like a good idea. The block hash is always different, so it should work, right? Blockchain magic, baby!
upvoted 0 times
...
Lindsey
4 months ago
Option D is the correct answer. The Ethereum blockchain is a deterministic environment, so it's not possible to truly generate a random number.
upvoted 0 times
Nidia
3 months ago
So, if we need randomness, we have to find alternative solutions outside of the blockchain.
upvoted 0 times
...
Minna
3 months ago
Exactly, it's all about following the rules and protocols set in place.
upvoted 0 times
...
Kerrie
3 months ago
That makes sense, since everything in the blockchain is based on deterministic rules.
upvoted 0 times
...
Glenna
3 months ago
D
upvoted 0 times
...
Leigha
3 months ago
C
upvoted 0 times
...
Ernestine
3 months ago
D) it's not possible to have a random number in a deterministic environment such as the Ethereum blockchain.
upvoted 0 times
...
Twanna
4 months ago
B
upvoted 0 times
...
Dorinda
4 months ago
A
upvoted 0 times
...
...
Desmond
4 months ago
I disagree, I believe using the block hash is a better option.
upvoted 0 times
...
Hyun
4 months ago
I think it's good to use the block timestamp for randomness.
upvoted 0 times
...

Save Cancel