Tag: random

3032 How to generate random integers within a specific range in Java? 2008-12-12T18:20:57.053

1630 Why does this code using random strings print "hello world"? 2013-03-03T04:38:06.147

1582 Generating random whole numbers in JavaScript in a specific range? 2009-10-06T20:05:41.100

1538 How do I generate a random int number in C#? 2010-04-24T23:09:11.523

1520 How to generate a random alpha-numeric string? 2008-09-03T02:58:43.073

1398 How to randomly select an item from a list? 2008-11-20T18:42:21.817

1356 Generate random number between two numbers in JavaScript 2011-02-10T16:41:22.923

1265 Generate random string/characters in JavaScript 2009-08-28T21:14:41.053

1059 Random string generation with upper case letters and digits in Python 2010-02-13T12:23:58.213

982 Generate random integers between 0 and 9 2010-10-22T12:48:29.157

825 Understanding "randomness" 2010-10-18T03:40:52.267

756 How can I generate random alphanumeric strings? 2009-08-27T23:07:24.883

722 How to get a random number in Ruby 2008-10-13T18:07:24.043

718 Generating random numbers in Objective-C 2008-10-02T04:35:21.967

693 How to generate a random string in Ruby 2008-09-17T22:24:44.803

688 PHP random string generator 2010-12-04T22:56:21.337

673 Random number generator only generating one random number 2009-04-20T12:11:24.717

668 Expand a random range from 1–5 to 1–7 2008-09-26T04:33:32.907

644 Get random item from JavaScript array 2011-05-06T17:47:45.747

573 Shuffling a list of objects 2009-06-10T16:56:59.503

504 How do I pick randomly from an array? 2010-08-14T05:26:49.963

474 How to generate a random int in C? 2009-05-04T22:07:59.787

455 How to request a random row in SQL? 2008-08-21T06:28:49.927

408 MySQL select 10 random rows from 600K rows fast 2010-12-01T21:35:14.593

380 How does one generate a random number in Apple's Swift language? 2014-06-03T04:27:24.290

331 Random color generator 2009-09-27T21:17:44.193

314 Getting random numbers in Java 2011-05-04T17:52:46.140

311 PHP: How to generate a random, unique, alphanumeric string? 2009-12-04T10:49:00.590

301 Why does rand() + rand() produce negative numbers? 2015-06-13T17:15:39.130

284 How to get a random number between a float range? 2011-05-22T13:00:50.053

280 Seeding the random number generator in Javascript 2009-02-06T17:37:39.833

272 Select n random rows from SQL Server table 2009-05-11T16:19:11.890

254 Best way to select random rows PostgreSQL 2011-12-29T23:30:11.320

248 Why do people say there is modulo bias when using a random number generator? 2012-06-11T17:44:03.120

245 How can I shuffle the lines of a text file on the Unix command line or in a shell script? 2010-01-28T10:49:08.593

237 Get a random number focused on center 2015-05-27T20:12:16.803

229 C++ random float number generation 2009-03-26T15:49:14.797

222 Random String Generator Returning Same String 2009-07-13T22:38:54.447

204 Shuffle an array with python, randomize array item order with python 2009-01-23T18:34:29.633

198 How to generate a random string of a fixed length in Go? 2014-04-06T09:22:54.360

198 Is java.util.Random really that random? How can I generate 52! (factorial) possible sequences? 2018-08-09T15:45:32.133

197 Generating Random Passwords 2008-09-10T18:45:15.437

197 Produce a random number in a range using C# 2010-10-20T06:34:29.233

189 How to access random item in list? 2010-01-07T09:54:36.780

185 Difference between java.util.Random and java.security.SecureRandom 2012-06-15T13:04:41.600

178 How to generate a random number between a and b in Ruby? 2010-12-09T05:18:14.753

177 Random alpha-numeric string in JavaScript? 2012-05-23T19:54:32.160

171 How to randomly select rows in SQL? 2009-02-24T06:14:12.587

170 Is this a "good enough" random algorithm; why isn't it used if it's faster? 2013-01-24T00:35:42.903

169 Generate a random point within a circle (uniformly) 2011-04-29T21:27:50.357

169 Why do I get this particular color pattern when using rand()? 2018-09-21T23:05:32.367

166 Unique (non-repeating) random numbers in O(1)? 2008-10-12T20:34:22.297

166 Get random item from array 2010-11-20T15:15:54.760

163 Generating a random password in php 2011-05-23T19:29:28.607

161 Better way to shuffle two numpy arrays in unison 2011-01-05T06:23:56.033

161 Get a random boolean in python? 2011-07-26T02:46:02.383

161 Is 161803398 A 'Special' Number? Inside of Math.Random() 2014-05-15T20:37:58.887

156 Picking a random element from a set 2008-09-24T00:12:17.747

156 Pick a random element from an array 2014-06-02T20:59:22.007

154 Reasons for using the set.seed function 2012-11-28T12:39:04.507

150 Need for predictable random generator 2009-05-26T11:31:40.420

148 Random / noise functions for GLSL 2010-11-16T23:50:50.387

147 Best way to create unique token in Rails? 2011-05-16T17:57:22.323

146 How do I create a random alpha-numeric string in C++? 2009-01-13T18:16:30.373

146 Why does C++ rand() seem to generate only numbers of the same order of magnitude? 2013-06-20T09:18:54.977

142 How to generate random number in Bash? 2009-07-28T15:23:15.520

141 Generating a Random Number between 1 and 10 Java 2013-12-05T01:51:05.503

139 How many random elements before MD5 produces collisions? 2008-10-14T15:43:27.827

139 Random record in ActiveRecord 2010-05-02T02:11:52.507

139 Generate 'n' unique random numbers within a range 2014-04-03T15:29:57.457

138 Why does this random value have a 25/75 distribution instead of 50/50? 2014-12-23T17:57:41.097

137 How do I select a random value from an enumeration? 2010-06-28T11:59:28.967

136 How to solve slow Java `SecureRandom`? 2008-09-26T01:07:04.243

134 Select N random elements from a List<T> in C# 2008-09-07T03:12:28.120

134 Generate a random alphanumeric string in Cocoa 2010-04-13T23:06:22.787

131 Generating random integer from a range 2011-02-15T19:55:33.797

131 Rails 3: Get Random Record 2011-03-17T16:41:24.257

128 How do I pick 2 random items from a Python set? 2009-08-11T21:12:37.243

124 Pick a random value from an enum? 2009-12-29T00:54:29.203

123 Seedable JavaScript random number generator 2009-01-08T13:51:24.940

123 random.seed(): What does it do? 2014-03-25T15:46:46.820

122 Is 1.0 a valid output from std::generate_canonical? 2014-09-04T14:51:52.230

120 Data structure for loaded dice? 2011-02-17T10:33:43.977

119 Random date in C# 2008-10-12T00:01:38.090

119 Golang random number generator how to seed properly 2012-09-07T15:29:44.270

118 Is it correct to use JavaScript Array.sort() method for shuffling? 2009-06-07T20:56:09.193

117 Random Number Between 2 Double Numbers 2009-06-30T17:17:54.683

117 How can I generate a unique ID in Python? 2009-07-31T02:51:44.580

116 Best way to randomize an array with .NET 2008-09-20T17:33:26.157

114 Math.random() versus Random.nextInt(int) 2009-04-10T19:29:09.633

113 How to randomly sort (scramble) an array in Ruby? 2009-11-29T18:45:59.340

113 Generate random numbers using C++11 random library 2013-10-29T18:01:08.267

110 How to get a random value in python dictionary 2011-02-01T05:37:05.667

110 How to generate random SHA1 hash to use as ID in node.js? 2012-02-23T05:51:54.110

109 Java: random long number in 0 <= x < n range 2010-03-30T14:41:21.397

108 Java Generate Random Number Between Two Given Values 2011-03-11T10:15:31.973

106 Generate a random double in a range 2010-09-09T21:15:40.670

105 How random is JavaScript's Math.random? 2009-06-30T10:22:07.623

105 Generate random numbers following a normal distribution in C/C++ 2010-02-24T11:16:02.607