Random number adding from a list

hi

help me to create a random adding app.
i'm going to make 15 column,and need to add a 7 numbers of the column less than a value.

please help me guys to make this app

Please provide an image of your relevant blocks

Also see here:

Show us a picture of the 15 columns and what's in them.
How many rows are in the 15 columns?

Ok, I will send you soon

This is for a game. I want make a 4 players team.
The team need only 260 kilogram (all players full weight ). App could make the maximum team like said above.
Please help me guy.

This is for a game. I want make a 4 players team.
The team need only 260 kilogram (all players full weight ). App could make the maximum team like said above.
Please help me guy

Here are your images for vertical people ...

I don't see 15 columns in what you posted.

What is each column?

  • A team to be filled from a pool of people?
  • A person who might be assigned to a team?
1 Like

Here is not 15 column.
Iam posted this with 7 column for a example

In that column is players name
I want make team
All people's weight in the team is less than 260kg
Please help me.
If could you help me to create this you will get a gift from me.

You have two columns and seven rows in your data.

image

If I understand correctly you want to automatically make a team or teams where the weights of four of the players does not exceed 260kg ?

Here is one way:

image

randomTeam2.aia (5.5 KB)

Sorry if this sounds as though I am complaining but it would be easier if you just use a dictionary, most people (even I) forget that they actually exist.

I did say at the start: "this is one way" :wink:

By all means show your dictionary solution:

"List" of players and their weights
Select 4 random players with combined weights of < 260kg

This is starting to sound like the Knapsack Problem.

2 Likes

I do love to go a wandering along the mountain track....:smiley:

1 Like

Try like this:
RandomTeam.aia (6.1 KB)
It has one main procedure: MakeTeam and one auxiliary one: RandomTeamProvider.
RandomTeamProvider generates a random team and Make team checks if there is any problem (weight > 260 or people twice)

Thanks for the help above. I said that name and kg for a example. Please make me a block like, when we write on empty text box, the result is based on we had write on empty box(name and weight)

For an Example

Text box 1 weight box 1
Text box 2 weight box 2
Text box 1 weight box 1
............. ........

Based on what we wrote.

I think you could understand what i mean by the statement. I am so weak on english.

I don't understand what do you mean. Can you give me more explanations or images?

I mean there will be change the players name,weight,number of players for team, less than value this all will change

Ok i going to make a example view in a notebook