Posts by Quest • 11 points
1 post
-
1
votes1
answer2479
viewsQ: Generate even and odd random numbers with defined quantities
How to generate random numbers with Random and limiting the number of odd and odd pairs? Example: 50 numbers should be generated in total, being 20 pairs and 30 odd. public int GeraVetorParImpar() {…