Random Number Genereator

cpp.net United States
  • 15 years ago

    im working on a project for school and i need a simple code for a random number generator

  • 15 years ago

    Click here  for a simple generator.


    You might want to seed it initially with the milliseconds part of the current time. This would make it give different numbers each time it is run.  


    There are lots of more complicated (and sometimes slower) random number generation algorithms, which give output that is more truly random, but you probably won't need these for most purposes.


    Alternatively, you could always get married and give your wife a credit card.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“We better hurry up and start coding, there are going to be a lot of bugs to fix.”