Posts by Jhonata Bonadio • 33 points
1 post
-
2
votes2
answers170
viewsQ: I want to generate 4 random values from an array. How can I do it?
I’m looking to generate 4 random values from an array. I’ve tried using Math.Random, but it’s in an infinite loop... import React, { useState, useEffect } from "react"; import api from…