Skip to content
Tiny program for generate random characters using C
C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
source
LICENSE
README.md

README.md

Random String C

Tiny program for generate random characters using C

Output

==>9NI3Ex1EkuPgQPrggzJPXueYy
==>442626464025050455522664
==>�6���jϨ"���d~����|�)Ҍ���?��

Check

randString1()

randString2()

When your program multi time runs. You will notice that the production of the random value will be the same. because that ways depends on memory.

randString3()

The printed output does not have a direct rely on memory and time. So you can try it out.

randString4()

There are also some methods that depend on time.

So if they multi time run in a one seconds... Will produce the same numbers.

Ways

The C Programming Language has two function rand(), srand() then used for randomization.

  • time
  • memory
  • /dev/random, /dev/urandom
  • ...
You can’t perform that action at this time.