Click here to Skip to main content
15,909,737 members
Home / Discussions / C#
   

C#

 
AnswerRe: Unmanaged memory issue Pin
PIEBALDconsult30-Aug-11 7:48
mvePIEBALDconsult30-Aug-11 7:48 
GeneralRe: Unmanaged memory issue Pin
c4tchm4tt1-Sep-11 5:03
c4tchm4tt1-Sep-11 5:03 
GeneralRe: Unmanaged memory issue Pin
PIEBALDconsult1-Sep-11 14:53
mvePIEBALDconsult1-Sep-11 14:53 
Generalwindow application Pin
ashishchourey29-Aug-11 0:06
ashishchourey29-Aug-11 0:06 
GeneralRe: window application Pin
Blue_Boy29-Aug-11 0:31
Blue_Boy29-Aug-11 0:31 
GeneralRe: window application Pin
BillWoodruff29-Aug-11 0:59
professionalBillWoodruff29-Aug-11 0:59 
GeneralRe: window application Pin
Hari Om Prakash Sharma29-Aug-11 1:47
Hari Om Prakash Sharma29-Aug-11 1:47 
AnswerRe: window application Pin
Abhinav S29-Aug-11 1:49
Abhinav S29-Aug-11 1:49 
GeneralRe: window application Pin
Goutam Patra29-Aug-11 3:07
professionalGoutam Patra29-Aug-11 3:07 
Questionhow to connect to dbf database Pin
goldsoft28-Aug-11 22:19
goldsoft28-Aug-11 22:19 
AnswerRe: how to connect to dbf database Pin
Wayne Gaylard28-Aug-11 22:28
professionalWayne Gaylard28-Aug-11 22:28 
AnswerRe: how to connect to dbf database Pin
phil.o28-Aug-11 23:28
professionalphil.o28-Aug-11 23:28 
AnswerRe: how to connect to dbf database Pin
Eddy Vluggen29-Aug-11 0:28
professionalEddy Vluggen29-Aug-11 0:28 
AnswerRe: how to connect to dbf database Pin
V.29-Aug-11 3:32
professionalV.29-Aug-11 3:32 
QuestionAsp.net Pin
prabhatkumartiwari28-Aug-11 19:32
prabhatkumartiwari28-Aug-11 19:32 
Question[SPAM, almost] Pin
gsue28-Aug-11 19:06
gsue28-Aug-11 19:06 
QuestionXML File -> DataGridView - One additional row of data Pin
TheBlindWatchmaker28-Aug-11 18:21
TheBlindWatchmaker28-Aug-11 18:21 
QuestionHow can i get year, month different from calendar? Pin
buffering8328-Aug-11 15:17
buffering8328-Aug-11 15:17 
AnswerRe: How can i get year, month different from calendar? Pin
PIEBALDconsult28-Aug-11 16:52
mvePIEBALDconsult28-Aug-11 16:52 
AnswerRe: How can i get year, month different from calendar? Pin
Anthony Mushrow28-Aug-11 17:08
professionalAnthony Mushrow28-Aug-11 17:08 
Questionjust woundering about random numbers? Pin
stephen.darling28-Aug-11 12:02
stephen.darling28-Aug-11 12:02 
Hello.
I am learning c# and reading my book "Head first c#"

In the interum, I would like to ask about generating random numbers.

My example uses the game "Roulette" where the wheel spins, and a number between 0 and 36 comes out.

I would like to ask the following questions:

1)What is the best (as in most random) way of generating a number between 0 and 36?

3)How would this be done if we had an animated roulette wheel, I ask this because if you play the game online, the ball may look as though it is ready to land on, say, 6, but then it appears to "bounce" to an adjacent number, is this down to a "random " value.

And lastly, lets say we are creating a random horse race, but the horse in question has a 80% chance of winning, how would we add this "odds" into a random value?

Thank you,
Stephen
AnswerRe: Just wondering about random numbers Pin
DaveyM6928-Aug-11 13:06
professionalDaveyM6928-Aug-11 13:06 
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 

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.