There is a bunch of things you can use, especially on linux.
The kernels random number generator can be accessed through the device /dev/random. The pseudo-randoms are initiallized by the kernel at boottime, so they should be fairly irregular.
A couple of examples:
in bash, try
Code:
head -c 1 /dev/random | hexdump -d | gawk '{print $2}'
to display a single decade character. just typing
would display the ascii character corresponding to the given number.
You can also directly you awk to diplay randoms. Just go for
Code:
gawk '{print rand()*100}'
.
If you are into c or c++, i would suggest you read up on the manpage for rand (just type "man rand" without the quotes). For example:
Code:
#include <stdlib.h>
#include <stdio.h>
int main() {
int i;
//initialize the rng
srand(time());
i=rand()*100;
printf("This is a random numer: %i\n", i);
return 0;
}
The solution always depends on what you are trying to implement... there are more then enough ways.