This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 1,000,000+ packages pre-installed, including
expo-random with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Provides a native interface for creating strong random bytes. With
Random you can create values equivalent to
You can add a polyfill for
crypto.getRandomValues by installing react-native-get-random-values and importing it in SDK 39 and higher.
expo install expo-random
npx pod-install after installing the npm package.
No additional set up necessary.