Duplication Programming Software Development by I0adidas0I …. but i want to have it so that theres no duplication in the questions. like if the number is already chosen… Duplication of Inserted Data Programming Web Development by omoayan … inserted into database.'; ?> I added this to correct the duplication before inserting anything into the database, but when I insert… Re: Duplication Programming Software Development by Xelfinn It seems easy enough to set up another array to store a reference of string pointers to the questions chosen. And each time a random question is selected search the other array for a matching pointer. Make sure you set each of the other array cells to NULL so you don't compare some unknown something. :) Of course I don't know C++ but that's how … Re: Duplication Programming Software Development by Dani Here's an extremely simplistic/mediocre way of doing it in C++, based on Aelfinn's posted. Lets say you have array of strings A[40] with 40 cells, that looks sorta like the following? A[0] = Question 1? A[1] = Question 2? A[2] = Question 3? and, well, you get the idea. Now, basically create a second array, int B[40]. Also create a … Re: Duplication Programming Software Development by Bob One easy way to achieve this would be as follows: - Start with your array of 40 questions (strings). - Initialise a counter to the number of strings (40) - Select a random string in the range 1 to 40 (e.g. string 10) - Swap the selected string (10) with the last unused string (40) - Output string 40 - decrement the number of strings (to 39)… Re: Duplication Programming Software Development by Xelfinn I like that...much faster than my idea and with no guaranteed work to prove the string hasn't been used. Re: Duplication Programming Software Development by Bob Note that you'd want to add a call to srand() at the start of main() in your program. It suited me not to do this during testing so that it always used the same sequence. Re: Duplication Programming Software Development by #define ok... if i were on your place then i will try to do it some thing like that i will make another array of same size of or of the size greater than that of your array but as it was wastage of memory so make array of size as u need and after that i will place random number in that array and if that number comes by using some search technique i will … Re: Duplication Programming Software Development by tetron 2 approaches to consider: 1st assuming that you have a list of questions that are unique in something like a std::vector<std::string> questions there are two approaches I would recommend #2 #1 Shuffle the questions so that they are in a random order You can use a method suggest by the other posters have an iterator (something … Re: Duplication Programming Software Development by peter_budo #define & tetro congratz ladies/gents! You just made new forum record of re-opening oldest thread which now stands for [B]7 years[/B]. Thread closed. Need help in checking for duplication records in Excel Programming Software Development by Jing_1 … excel file but before that i want to check for duplication records in the excel file before appending. For example,… employeeID, i want to check whether is there a duplication record in the excel file before appending a new data… the excel file but i would like to check for duplication employeeID record before appending. Anyone can assist me? Thank … PLEASE HELP, Duplication in Arrays Programming Software Development by Monyet … to figure out how the hell can I print the duplication in arrays that's been initialized with random numbers... :( does… so that it can print for all numbers that have duplication... such as in this case "4" and "… Help: Duplication Validation Programming Web Development by prettyrein Now, I have another problem about duplication validation of my data in db.. the message "...already … reverse my return value and I can add but the duplication validation was ignore. here's my code:in mainController.php… How to prevent duplication using dropdownlist click Programming Web Development by Kevin Lee … letters in textbox(autocomplete), results are output. But gid is duplication. For example, I clicked gid="1", and input…;3". So how can I try something for preventing duplication? Thanks in advanced. Best Regards. Kevin Lee. Re: Generate Random numbers without duplication other than storing in the database Programming Software Development by johnly … an option/ or a formula to generate random numbers without duplication...Currently i'm not storing the random generated numbers in… = Int((Upper - Lower + 1) * Rnd + Lower) End Function For preventing duplication you need to write seperate code to check each random… Re: Help: Duplication Validation Programming Web Development by prettyrein I had solved my own problem...thanks guys for your help... i used the AND for that query and the duplication validation now works for me... thanks. God Bless... No Duplication in the question Programming Software Development by carlosrowlett Hey guys, I m making a program that selects questions from an array numbered 1-40. I put in a random functions so the questions are chosen randomly. But i want to have it so that theirs no duplication in the questions like if the number is already chosen skip and pick the next. Any help would be much appreciated. Generate Random numbers without duplication other than storing in the database Programming Software Development by renu_kj Hi, Is there an option/ or a formula to generate random numbers without duplication...Currently i'm not storing the random generated numbers in the database. Please help me..its quite urgent Re: Generate Random numbers without duplication other than storing in the database Programming Software Development by jinnie_gia Try using the RND([number]) in a loop to generate the nos. randomly.... TC [QUOTE=renu_kj;916068]Hi, Is there an option/ or a formula to generate random numbers without duplication...Currently i'm not storing the random generated numbers in the database. Please help me..its quite urgent[/QUOTE] Word Frequency Sort Duplication Problem Programming Software Development by markrezak … from highest count to lowest. my problem is about the duplication of the counts or value of the words.if the… random number generation without duplication Programming Software Development by Learning78 …). But the problem is that I can't stop the duplication, I have used the standard rndm function with lower and… C++ word duplication Programming Software Development by NinjaLink … difficulty duplicating 4 different words in the list. Example of duplication: marvin marvin jack jack mary mary bill bill [CODE=Cplusplus… memory duplication Programming Software Development by habib_parisa … large 2D array, 3000*3000, should be afraid about memory duplication when tree[][] is being passed as an argument to function… Re: memory duplication Programming Software Development by Ancient Dragon Don't worry about duplication because arrays are always passed by reference never by value. … Problem in generating random integer with no duplication? Programming Software Development by jgehlot09 I want to generate 1billion random integer with no duplication, I dont know how do I allocate memory for such a huge amount of data. Re: Problem in generating random integer with no duplication? Programming Software Development by Adak …;1192240]I want to generate 1billion random integer with no duplication, I dont know how do I allocate memory for such… Avoid Duplication Programming Software Development by virusisfound … showing all the product name but in database their is duplication of product name when user sale one product then it… Validate Duplication of ID in Database Programming Software Development by manutd4life … add record in it, i want to validate for the duplication of ID in database.. here's my code for add… Query duplication check Programming Databases by veledrom Hi, If any combination of these 3 (Name, Surname, DoB, Nationality) user inputs matches to database records then the query shouldn't stop to avoid duplication. If there any special function in MySQL because running 12 query wouldn't be nice for it! Thanks in advance Prevent duplication of records in database Programming Software Development by Gen.Asura … can I do in order for it to check data duplication. My friend helped me with the php files before he…