|
-
Mar 23rd, 2007, 03:53 PM
#1
Thread Starter
New Member
[RESOLVED] Random functions
Recently I've been playing with the random function for both javascript and vb.net... (Just a simple die roller: fields for number of dice and number of sides)
Ok so if I make it so it rolls 100 times or something to that affect the average roll is ALWAYS the same... That really makes me wonder how random these randomly generated numbers are... I eventually decided to just multiply by date.now.seconds and then do a mod operation which made the average different... But what the heck. What is in the random class (.net) and math.random function (javascript) that is making it average out to the same number everytime.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|