vendredi 10 décembre 2021

How to generate a random number from 2 numbers [duplicate]

I've searched a lot for generating a random number but all I got is generating for a range between a or b.

I'm trying to get a number from a or b, i.e. either a or b, none from in between.

This returns the first value only var number = 1 || 9; \\9




Aucun commentaire:

Enregistrer un commentaire