Click here to Skip to main content
15,914,070 members
Home / Discussions / C#
   

C#

 
AnswerRe: Rundom function Pin
Pete O'Hanlon6-Apr-11 4:53
mvePete O'Hanlon6-Apr-11 4:53 
GeneralRe: Rundom function Pin
treuveni6-Apr-11 5:13
treuveni6-Apr-11 5:13 
GeneralRe: Rundom function Pin
Pete O'Hanlon6-Apr-11 5:16
mvePete O'Hanlon6-Apr-11 5:16 
GeneralRe: Rundom function Pin
riced6-Apr-11 5:21
riced6-Apr-11 5:21 
GeneralRe: Rundom function Pin
#realJSOP6-Apr-11 5:45
professional#realJSOP6-Apr-11 5:45 
GeneralRe: Rundom function Pin
treuveni6-Apr-11 6:21
treuveni6-Apr-11 6:21 
JokeRe: Rundom function Pin
Bernhard Hiller6-Apr-11 20:27
Bernhard Hiller6-Apr-11 20:27 
AnswerRe: Rundom function Pin
David19876-Apr-11 5:16
David19876-Apr-11 5:16 
You'll need a source of randomness and a way to map the output of that source to numbers between your two inputs.
If you want the result to be uniformly chosen from the specified interval, you shouldn't use modulo - that would result in a "first part" where the numbers have a slightly higher chance of being picked then the ones in the "second part".

edit: Ok I just saw your post that you don't want to use the random class, then look up Mersenne Twister and implement that if you want it to be useful, or any simple PRNG if you want something as bad as System.Random or worse.
AnswerMessage Removed Pin
6-Apr-11 9:43
ankitjoshi246-Apr-11 9:43 
GeneralRe: Rundom function Pin
Pete O'Hanlon6-Apr-11 22:10
mvePete O'Hanlon6-Apr-11 22:10 
GeneralRe: Rundom function Pin
ankitjoshi248-Apr-11 3:58
ankitjoshi248-Apr-11 3:58 
GeneralRe: Rundom function Pin
GlobX7-Apr-11 17:47
GlobX7-Apr-11 17:47 
Questiontruble with videos Pin
yftah19896-Apr-11 4:33
yftah19896-Apr-11 4:33 
AnswerRe: truble with videos Pin
Ravi Bhavnani8-Apr-11 9:21
professionalRavi Bhavnani8-Apr-11 9:21 
GeneralRe: truble with videos Pin
yftah198910-Apr-11 6:43
yftah198910-Apr-11 6:43 
GeneralRe: truble with videos Pin
Ravi Bhavnani10-Apr-11 8:17
professionalRavi Bhavnani10-Apr-11 8:17 
QuestionMicrosoft Dynamics Development Pin
S.Aijaz5-Apr-11 23:05
S.Aijaz5-Apr-11 23:05 
AnswerRe: Microsoft Dynamics Development Pin
Pete O'Hanlon5-Apr-11 23:43
mvePete O'Hanlon5-Apr-11 23:43 
GeneralRe: Microsoft Dynamics Development Pin
Pravin Patil, Mumbai6-Apr-11 1:28
Pravin Patil, Mumbai6-Apr-11 1:28 
GeneralRe: Microsoft Dynamics Development Pin
Pete O'Hanlon6-Apr-11 2:00
mvePete O'Hanlon6-Apr-11 2:00 
Questionstatic method Pin
arkiboys5-Apr-11 22:49
arkiboys5-Apr-11 22:49 
AnswerRe: static method Pin
Pete O'Hanlon5-Apr-11 22:52
mvePete O'Hanlon5-Apr-11 22:52 
GeneralRe: static method Pin
arkiboys5-Apr-11 23:47
arkiboys5-Apr-11 23:47 
GeneralRe: static method Pin
Luc Pattyn5-Apr-11 23:52
sitebuilderLuc Pattyn5-Apr-11 23:52 
GeneralRe: static method Pin
arkiboys5-Apr-11 23:57
arkiboys5-Apr-11 23:57 

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.