7 Answered Questions

[SOLVED] srand() — why call it only once?

  • 2011-09-08 06:13:49
  • Lipika Deka
  • 66436 View
  • 68 Score
  • 7 Answer
  • Tags:   c random srand

14 Answered Questions

[SOLVED] Recommended way to initialize srand?

  • 2008-11-27 04:37:23
  • Gary Richardson
  • 80546 View
  • 60 Score
  • 14 Answer
  • Tags:   c++ random srand

3 Answered Questions

[SOLVED] Rand() % 14 only generates the values 6 or 13

  • 2013-11-28 10:12:51
  • Kenneth
  • 889 View
  • 14 Score
  • 3 Answer
  • Tags:   c++ random srand

1 Answered Questions

[SOLVED] srand function is returning same values

  • 2013-01-24 05:08:02
  • user1971996
  • 1251 View
  • 0 Score
  • 1 Answer
  • Tags:   c coding-style srand

5 Answered Questions

[SOLVED] How to use function srand() with time.h?

  • 2013-05-15 15:31:58
  • Đēēpak
  • 133617 View
  • 10 Score
  • 5 Answer
  • Tags:   c random srand

7 Answered Questions

[SOLVED] rand() generating the same number – even with srand(time(NULL)) in my main!

  • 2010-06-13 15:18:36
  • Nick Sweet
  • 20159 View
  • 14 Score
  • 7 Answer
  • Tags:   c++ random srand

4 Answered Questions

[SOLVED] How does srand relate to rand function?

  • 2014-01-22 03:21:55
  • Arrow
  • 32913 View
  • 18 Score
  • 4 Answer
  • Tags:   c random srand

3 Answered Questions

[SOLVED] Problems when calling srand(time(NULL)) inside rollDice function

  • 2013-03-22 12:51:19
  • Lyrk
  • 8556 View
  • 3 Score
  • 3 Answer
  • Tags:   c random srand

6 Answered Questions

[SOLVED] C program - srand()

  • 2012-11-22 21:05:28
  • phedon rousou
  • 2251 View
  • 0 Score
  • 6 Answer
  • Tags:   c srand

5 Answered Questions

[SOLVED] What is the equivalent of seeded random in Swift3 (Xcode8 beta 1)

  • 2016-06-17 03:42:17
  • Stéphane de Luca
  • 1950 View
  • 6 Score
  • 5 Answer
  • Tags:   random srand swift3

5 Answered Questions

[SOLVED] How does calling srand more than once affect the quality of randomness?

  • 2014-11-30 02:10:54
  • user3920237
  • 2565 View
  • 6 Score
  • 5 Answer
  • Tags:   c++ random srand

10 Answered Questions

[SOLVED] Random numbers in C

  • 2010-03-15 18:21:57
  • Sergey Gavruk
  • 1089 View
  • 13 Score
  • 10 Answer
  • Tags:   c random srand

4 Answered Questions

[SOLVED] How often should I call srand() in a C++ application?

  • 2011-08-05 09:53:26
  • laurent
  • 1623 View
  • 10 Score
  • 4 Answer
  • Tags:   c++ random srand

5 Answered Questions

[SOLVED] If I don't specify srand(), what seed does rand() use?

  • 2013-01-10 05:36:58
  • milo64
  • 3835 View
  • 5 Score
  • 5 Answer
  • Tags:   c random srand

3 Answered Questions

[SOLVED] How can I generate different random numbers for each player?

  • 2016-04-11 20:32:31
  • Mahmoud Hamra
  • 230 View
  • -2 Score
  • 3 Answer
  • Tags:   c random srand

8 Answered Questions

[SOLVED] Fill a vector with random numbers c++

3 Answered Questions

[SOLVED] random_shuffle not really random

  • 2012-11-19 18:34:43
  • Chin
  • 7718 View
  • 9 Score
  • 3 Answer
  • Tags:   c++ random srand

2 Answered Questions

[SOLVED] generate reliable pseudorandom number

  • 2012-01-13 07:38:11
  • Bryan Chen
  • 974 View
  • 2 Score
  • 2 Answer
  • Tags:   ios random srand

7 Answered Questions

[SOLVED] What‘s the difference between srand(1) and srand(0)

  • 2011-11-08 11:16:39
  • Flogo
  • 7889 View
  • 18 Score
  • 7 Answer
  • Tags:   c++ c random srand

6 Answered Questions

1 Answered Questions

3 Answered Questions

[SOLVED] C++ random int function

4 Answered Questions

3 Answered Questions

[SOLVED] random numbers and multiple srand calls

  • 2012-11-26 01:11:49
  • cegfault
  • 2036 View
  • 6 Score
  • 3 Answer
  • Tags:   c random srand

1 Answered Questions

4 Answered Questions

[SOLVED] Issues with seeding a pseudo-random number generator more than once?

5 Answered Questions

[SOLVED] Is it good idea to pass uninitialized variable to srand?

  • 2014-11-12 08:07:21
  • GingerPlusPlus
  • 354 View
  • 3 Score
  • 5 Answer
  • Tags:   c++ c srand

4 Answered Questions

[SOLVED] Strange srand behaviour inside for loop; c++

  • 2012-07-18 15:00:30
  • Eosis
  • 326 View
  • 2 Score
  • 4 Answer
  • Tags:   c++ srand

2 Answered Questions

[SOLVED] rand() return the same number

  • 2017-02-15 07:47:41
  • Mohamed Ali Benmansour
  • 514 View
  • 2 Score
  • 2 Answer
  • Tags:   c random srand

3 Answered Questions

[SOLVED] srand(time(null)) on iPhone don't work =(