Click here to Skip to main content
15,906,645 members
Home / Discussions / C#
   

C#

 
JokeRe: just woundering about random numbers? Pin
PIEBALDconsult28-Aug-11 14:10
mvePIEBALDconsult28-Aug-11 14:10 
GeneralRe: just woundering about random numbers? Pin
stephen.darling28-Aug-11 14:57
stephen.darling28-Aug-11 14:57 
GeneralRe: just woundering about random numbers? Pin
PIEBALDconsult28-Aug-11 16:50
mvePIEBALDconsult28-Aug-11 16:50 
AnswerRe: just woundering about random numbers? Pin
ljupcecar28-Aug-11 22:55
ljupcecar28-Aug-11 22:55 
AnswerRe: just woundering about random numbers? [modified] Pin
GParkings1-Sep-11 6:33
GParkings1-Sep-11 6:33 
GeneralRe: just woundering about random numbers? Pin
stephen.darling1-Sep-11 13:45
stephen.darling1-Sep-11 13:45 
GeneralRe: just woundering about random numbers? Pin
GParkings1-Sep-11 21:58
GParkings1-Sep-11 21:58 
GeneralRe: just woundering about random numbers? Pin
stephen.darling2-Sep-11 1:15
stephen.darling2-Sep-11 1:15 
Hi.

This is for fun, and not the real thing. It is going to be my first "real" project after the book. Although I would like it to be as "real" as possible.

I was actually thinking along the same lines.

1) Generate a random number 0-36
2) Animate the wheel, and somehow when the ball arrives near the generated number, make it "bounce a little" as though it was going to (random again) land on the number to the left or right before "faling" into place.

3) Use some kind of list/enum to look up the value and also get whether it is black or red (or green)

I have just started with the book now, and when I finish I am going to give this a real go.

Thank you for your advice and comments.

Kind Regards,
Stephen
QuestionIs this a good book to learn c#? Pin
stephen.darling28-Aug-11 7:01
stephen.darling28-Aug-11 7:01 
AnswerRe: Is this a good book to learn c#? Pin
Shameel28-Aug-11 8:54
professionalShameel28-Aug-11 8:54 
GeneralRe: Is this a good book to learn c#? Pin
stephen.darling28-Aug-11 11:25
stephen.darling28-Aug-11 11:25 
AnswerRe: Is this a good book to learn c#? Pin
Eddy Vluggen28-Aug-11 9:05
professionalEddy Vluggen28-Aug-11 9:05 
GeneralRe: Is this a good book to learn c#? Pin
stephen.darling28-Aug-11 11:27
stephen.darling28-Aug-11 11:27 
AnswerRe: Is this a good book to learn c#? Pin
BillWoodruff28-Aug-11 19:43
professionalBillWoodruff28-Aug-11 19:43 
Questionintegrate app.config [modified] Pin
Groulien28-Aug-11 4:14
Groulien28-Aug-11 4:14 
AnswerRe: integrate app.config Pin
jschell28-Aug-11 7:49
jschell28-Aug-11 7:49 
QuestionC#.net access Pin
dcof28-Aug-11 3:04
dcof28-Aug-11 3:04 
AnswerRe: C#.net access Pin
PIEBALDconsult28-Aug-11 4:34
mvePIEBALDconsult28-Aug-11 4:34 
GeneralRe: C#.net access Pin
dcof28-Aug-11 8:53
dcof28-Aug-11 8:53 
GeneralRe: C#.net access Pin
PIEBALDconsult28-Aug-11 12:01
mvePIEBALDconsult28-Aug-11 12:01 
GeneralRe: C#.net access Pin
dcof28-Aug-11 13:12
dcof28-Aug-11 13:12 
AnswerRe: C#.net access Pin
jschell28-Aug-11 7:59
jschell28-Aug-11 7:59 
GeneralRe: C#.net access Pin
dcof28-Aug-11 8:55
dcof28-Aug-11 8:55 
QuestionA programe interact with user Pin
Had12327-Aug-11 5:42
Had12327-Aug-11 5:42 
AnswerRe: A programe interact with user Pin
MicroVirus27-Aug-11 6:08
MicroVirus27-Aug-11 6:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.