UNPKG

react-native-paysofter

Version:

This is a React Native package for integrating Paysofter payment gateway into your React Native application.

18 lines (15 loc) 410 B
// GenerateRandomNum.js // export function generateRandomNum(digits) { // let num = ""; // for (let i = 0; i < digits; i++) { // num += Math.floor(Math.random() * 10).toString(); // } // return num; // } export const generateRandomNum = (digits) => { let num = ""; for (let i = 0; i < digits; i++) { num += Math.floor(Math.random() * 10).toString(); } return num; };