How to access the random beacon

Is there any way to get acces to dfinity‘s randomness with Motoko? @chenyan @enzo

5 Likes

+1 having a source of randomness would be great

4 Likes

Summarizing the duplicate forum post here:

import Random "mo:base/Random"

...

    // 32-bytes of entropy.
    let beacon : Blob = await Random.blob();

2 Likes