Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,282 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,209 people online right now. Registration is fast and FREE... Join Now!




sudoku

 
Reply to this topicStart new topic

sudoku, Generating random numbers

greenwaycharlessiva
post 12 Mar, 2008 - 06:35 AM
Post #1


New D.I.C Head

*
Joined: 16 Dec, 2007
Posts: 3


My Contributions


can i get source code for generating random numbers from 0-9 for sudoku in c.
User is offlineProfile CardPM

Go to the top of the page

NickDMax
post 12 Mar, 2008 - 06:48 AM
Post #2


2B||!2B

Group Icon
Joined: 18 Feb, 2007
Posts: 2,857



Thanked 47 times

Dream Kudos: 550
My Contributions


take a look at srand() which is the usual place for getting random numbers. You can also look in both the tutorials and snippets sections of this site for more example.

If you search the C++ forum you will find a good number of other posts of sudoku.

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks.
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/22/08 12:50AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month