Menu
Hi!!!
I have a doubt in scripting in one of the program in javascript.
Program:
Generate random 10 numbers from 1 to 10 such that 3,4 and 5 should not appear one after the another and vice versa.
it means the order should not be in trio and dual.
i mean to say it should not appear in the following ways:
3 4 5
4 3 5
5 3 4 and all the possible combinations.
3 4
4 5
5 3 and all the possible combinations.
The script which i have written has been attached to this mail.
Please give help me to solve this problem..
Thanks,
Jigar.
[upl-file uuid=fbd73d18-37fe-448e-919b-f08fdab1fe25 size=1kB]random numbers.txt