lundi 14 mars 2022

Select random numbers that meet certain criteria? [closed]

I'm doing a numbers project with RNGs. How can I make a Python script to select 6 numbers that meet a certain criteria? I'm a total beginner Python programmer.

The criteria is:

  • Be able to enter the numbers range first. Such as lowest number and highest number.
  • Next I want to generate 6 Numbers.
  • Next I want the 6th Number to have a separate range.
  • I want to be able to pick how many EVEN and ODD numbers will be chosen.
  • Next I want the SUM of numbers to be within a range for example 150 to 200.

How can I do this?




Aucun commentaire:

Enregistrer un commentaire