How to use the radio function from chance

Find comprehensive JavaScript chance.radio code examples handpicked from public code repositorys.

21
22
23
24
25
26
27
28
29
30
const lastNames = ['Doggo', 'Pupster', 'Smith', 'Wolf']
const puppies = longArray(100).map(() => {
  const first = chance.first()
  const last = lastNames[Math.floor(Math.random() * 4)]
  const ssn = chance.ssn()
  const callsign = chance.radio()
  const age = Math.floor(chance.age() / 7)
  const insertQuery = 
    `INSERT INTO Puppy (
      first_name, last_name, ssn, callsign, age
fork icon0
star icon1
watch icon1

+ 5 other calls in file