7 Answered Questions

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

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

15 Answered Questions

[SOLVED] Recommended way to initialize srand?

  • 2008-11-27 04:37:23
  • Gary Richardson
  • 86313 View
  • 64 Score
  • 15 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
  • 918 View
  • 14 Score
  • 3 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
  • 21327 View
  • 14 Score
  • 7 Answer
  • Tags:   c++ random srand

1 Answered Questions

[SOLVED] srand function is returning same values

  • 2013-01-24 05:08:02
  • user1971996
  • 1460 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
  • 144700 View
  • 11 Score
  • 5 Answer
  • Tags:   c random srand

6 Answered Questions

[SOLVED] C program - srand()

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

4 Answered Questions

[SOLVED] How does srand relate to rand function?

  • 2014-01-22 03:21:55
  • Arrow
  • 35382 View
  • 19 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
  • 9496 View
  • 3 Score
  • 3 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
  • 1759 View
  • 11 Score
  • 4 Answer
  • Tags:   c++ random 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
  • 2044 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
  • 3031 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
  • 1125 View
  • 13 Score
  • 10 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
  • 4347 View
  • 6 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
  • 384 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
  • 8202 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
  • 1006 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
  • 8905 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
  • 2158 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
  • 365 View
  • 3 Score
  • 5 Answer
  • Tags:   c++ c srand

2 Answered Questions

[SOLVED] rand() return the same number

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

5 Answered Questions

[SOLVED] Problems with srand(), C++

  • 2010-11-12 03:58:55
  • rectangletangle
  • 3408 View
  • 0 Score
  • 5 Answer
  • Tags:   c++ srand

3 Answered Questions

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