|
||||||
| Programming Theory Discuss programming theory, algorithm efficiency, logic, and other any other category where math and computer science overlap. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
Yes of course it is possible. Just write your own algorithm that can take multiple seeds run them through an algorithm then produce a seed to actually be use.
About polymorphism... A polymorphic code is basically a code that can change itself or mutate itself but still accomplish the same thing. Basically it can patch itself, move parts of its code around, do things in different orders, rename things, etc. A random number is necessary to decide in which way the algorithm should change itself. So a polymorphic code will use different types of seeds to help ensure its randomness. Here are some links on polymorphism... Polymorphic code - Wikipedia, the free encyclopedia Polymorphism Check those out they'll explain it better... |
|
|||||
|
What do you mean by different random generators? You mean algorithms? And even so you are going to need different seeds otherwise your algorithms will end up always producing the same thing.
For example, let's say that you were using time as your seed and your first algorithm will start one second past midnight. Algo 1) Takes the Seed of 1 and produces 5 (Multiplies by 5) Algo 2) Takes the return of Algo 1 as a seed, 5, and produces 25 (Squares the Value) Algo 3) Takes the return of Algo 2 as a seed, 25, and produces 18 (Subtracts 7) Algo 4) Takes the return of Algo 3, as a seed, 18, and produces 9 (Divides by 2) Okay do you finally end up with 2. Now you might be saying okay that is more random because it went through more algorithms, but it's not because each algorithm depended on the first seed which is always going to be dependent on time. So basically everytime that it is one second past midnight you are going to get 2, just as if you had used the regular random function the value will always be the same. That being said, you are best off finding a good seed. And if that is not good enough writing your own algorithm that can produce psuedo-random integers. But using multiple algorithms is pointless because they depend on eachother. Which will all lead back to the original seed. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| filling an array with random #s | gaylo565 | C# Programming | 5 | 05-02-2008 12:21 PM |
| Encryption using Random!? | TcM | Programming Theory | 14 | 01-07-2008 11:48 AM |
| Generating Random Numbers with PHP | Paradine | PHP Tutorials | 4 | 08-27-2007 08:09 PM |
| Return random numbers without duplicates | Paradine | PHP Tutorials | 0 | 08-26-2007 03:07 PM |
| Code:PHP Random Functions | John | PHP Tutorials | 2 | 12-03-2006 11:04 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |