bebrouss Posted March 5, 2013 Share Posted March 5, 2013 Hi , It my first post on the forum but i'm a old user of your web site. My problem is in asp i need tor creat a random fonction like loto. I explain y probleme, i have an arrey like this (19,20,21,22,23,24,25) and it can be any longueur with many number other exmple (99,100,101,104,105) What i need its too place in different order like a random this array First exemple original=(19,20,21,22,23,24,25) after (22,20,24,21,23,19,25)after (20,19,21,24,23,22,25)and ... First step i do its a code to find how number of value in array.I count the array,I repalce all , by nothing ans i recount the array now i know in how i need to split my arraybut i dont how to place my value in a different order and not 2 time every value need to be there but in a different order Sorry for my english i try my best If some body have a suggest for me its appreciate. I need to do this on a looping for a multiple insert in a bd but for that its not a problem for me Thanks you Have a nice day Link to comment Share on other sites More sharing options...
justsomeguy Posted March 5, 2013 Share Posted March 5, 2013 If you're using VBScript, there's a function to do that here: http://www.devx.com/vb2themax/Tip/19011 Link to comment Share on other sites More sharing options...
bebrouss Posted March 6, 2013 Author Share Posted March 6, 2013 Thanks you for your help its work great for me !!! Thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now