I want to take these clips, have clip one as the beginning and clip 27 as the ending, but the clips inbetween varied.
I want to vary the clips 2 to 26 so they play in a special random order.

That special random order is based on boolean true false statement, like this;

Code:
int main()
{ int one, two, three;
one=1;
two=2;
three=3;
if((two<=three)&&(three>=1));
play clip two;
else play clip 3;
variable name is one.
variable name value is 1.
How do I add the number of frames in the clip to variable name value?
The clips would have to have these numbers from the number of frames to make the clips have the values; greater than, equal to, or less than.
What gives the clips special values is total frame numbers in the clips, but I don't know how to add that to the variable name value.

So I want you to do two things for me:
1.) add frame number values to the variable name's number. Right now I have one=1, two=2, but it could be, one=("clip has this many frames:")
2.) make the clips play in the order I specified: one is the beginning of the video sequence, two is the last clip in the video sequence, join these beginning and ending clips is clips 2 to 26.
3.) Could you do write your answer in C not C++? I'm learning C and this would help me more than you can imagine.


Here is the code I have so far:

Code:
loadplugin("C:\Program Files\AviSynth 2.5\plugins\DirectShowSource.dll")

one=directshowsource("C:\clips\1.mp4", audio=false, 23.976)
two=directshowsource("C:\clips\2.mp4", audio=false, 23.976)
three=directshowsource("C:\clips\3.mp4", audio=false, 23.976)
four=directshowsource("C:\clips\4.mp4", audio=false, 23.976)
five=directshowsource("C:\clips\5.mp4", audio=false, 23.976)
six=directshowsource("C:\clips\6.mp4", audio=false, 23.976)
seven=directshowsource("C:\clips\7.mp4", audio=false, 23.976)
eight=directshowsource("C:\clips\8.mp4", audio=false, 23.976)
nine=directshowsource("C:\clips\9.mp4", audio=false, 23.976)
ten=directshowsource("C:\clips\10.mp4", audio=false, 23.976)
eleven=directshowsource("C:\clips\11.mp4", audio=false, 23.976)
twelve=directshowsource("C:\clips\12.mp4", audio=false, 23.976)
thirteen=directshowsource("C:\clips\13.mp4", audio=false, 23.976)
fourteen=directshowsource("C:\clips\14.mp4", audio=false, 23.976)
fifteen=directshowsource("C:\clips\15.mp4", audio=false, 23.976)
sixteen=directshowsource("C:\clips\16.mp4", audio=false, 23.976)
seventeen=directshowsource("C:\clips\17.mp4", audio=false, 23.976)
eighteen=directshowsource("C:\clips\18.mp4", audio=false, 23.976)
nineteen=directshowsource("C:\clips\19.mp4", audio=false, 23.976)
twenty=directshowsource("C:\clips\20.mp4", audio=false, 23.976)
twenty_one=directshowsource("C:\clips\21.mp4", audio=false, 23.976)
twenty_two=directshowsource("C:\clips\22.mp4", audio=false, 23.976)
twenty_three=directshowsource("C:\clips\23.mp4", audio=false, 23.976)
twenty_four=directshowsource("C:\clips\24.mp4", audio=false, 23.976)
twenty_five=directshowsource("C:\clips\25.mp4", audio=false, 23.976)
twenty_six=directshowsource("C:\clips\26.mp4", audio=false, 23.976)
twenty_seven=directshowsource("C:\clips\27.mp4", audio=false, 23.976)

#include <stdio.h>

int main()
{   int one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen, seventeen, eigthteen, nineteen, twenty, twenty_one, twenty_two, twenty_three, twenty_four, twenty_five, twenty_six, twenty_seven;
one=1;
two=2;
three=3;
four=4;
five=5;
six=6;
seven=7;
eight=8;
nine=9;
ten=10;
eleven=11;
twelve=12;
thirteen=13;
fourteen=14;
fifteen=15;
sixteen=16;
seventeen=17;
eighteen=18;
nineteen=19;
twenty=20;
twenty_one=21;
twenty_two=22;
twenty_three=23;
twenty_four=24;
twenty_five=25;
twenty_six=26;
twenty_seven=27;
}

converttoyv12()
I need to know what C code to put into my program to do what I want. I know I want the clips to have values, but that question on how to put the frame number into the code is not what I came to this forum for. I only want to know what the code would look like on a most basic level then I can take that and build it up into a functioning program. I want to know what the code uses to do this: pointers, or loops, or printf or scanf, or rand; something to poin me in the direction of how to build what I want.

The video source is from youtube videos. I dl them using realplayer and then I use megui to chop up the clips into chunks at scene changes. This source is then fed into the program as variables with the number of the variable matching the number of the chunk. So it's all legal.