Seed is a JavaScript interpreter and a library of the GNOME project.
Questions tagged [seed]
632 questions
-1
votes
1 answer
PHP "randomize" the rand() function?
Hi everyone I was wondering what could be possible to randomize this code even further :

Hxfs
- 31
- 5
-1
votes
2 answers
Java Random Generator's seed producing different outputs
While trying to create a Coin object class using two specific seeds passed into the object upon creation, I have noticed that when passing in the seed to an int "seed", the seed variable produces a different variable than just inputting the specific…

violation_sng
- 3
- 1
-1
votes
2 answers
Python seed through the subfunction
I have a function and a subfunction and in each of them some random arrays are being generated. In order to make the result reproducible, I use seed. However I see strange cases.
When, I have a seed in the subfunction, the random numbers in the…

Afshin Oroojlooy
- 1,326
- 3
- 21
- 43
-1
votes
2 answers
Java Random.nextInt(int) return the same value when set different seeds
I wrote a demo to test java.util.Random and I want to produce a repeating list of the same 5 numbers, but I get the same value when set different seeds.In my program, seeds range from 0 to 4. As far as I know, different seeds produce different…

dragonfly
- 1,151
- 14
- 35
-1
votes
1 answer
java.lang.NumberFormatException error in eclipse when parsing an int
I'm trying to use the stopwatch class to measure the speed at which my code runs on ArrayList vs. LinkedList. I continue to get this error when I try to compile my code.
Exception in thread "main" java.lang.NumberFormatException: For input string:…

Bianca Fuller
- 39
- 1
- 9
-1
votes
1 answer
Rails: Seeds, Relationship
I want to push dummy content in my database. There is a 1:n relationship concepted in my models.
seeds.rb:
city= City.create([{:ort_name=>"Hagen"}])
person= Person.create([{:name = "root"}])
I try this
city << person
and
person.city_id =…

ubuseral
- 427
- 1
- 3
- 14
-2
votes
1 answer
TypeError: seed is not a function
I am currently working on an assignment that involves a traveler website and creating a database that stores things like code, name, and length. I am trying to seed data into a database, but I am getting an error that says:
TypeError: seed is…

FireMonkey
- 7
- 4
-2
votes
1 answer
C99:I need someone with a good seeding algorithm for Windows 10
The code shown below is for a program that generates a random password. The password char makeup itself is fine, but the issue comes with the password length. It is supposed to be a random number between 12 and 20(upper and lower). However it always…

Jacob73
- 9
-2
votes
1 answer
dropout, recurrent_dropout in LSTM layer
I am training a GRU neural network and added dropout and recurrent dropout in my GRU layer but since then I can't get reproducible results every time I run the program again and I can't fix this problem even with…

Virginie Gautier
- 1
- 1
-2
votes
2 answers
Why does this code always generate zero when I want to generate random numbers? How can I fix the problem?
#include
#include
#include
#include
using namespace std;
class mRND
{
public:
void seed()
{
srand(time(0));
_seed = rand();
}
protected:
…

raneem
- 1
- 3
-2
votes
1 answer
The usage of np.random.seed when we change its value
According to What does numpy.random.seed(0) do?, we understand the usage concept of this code.
But, How we can understand what value is appropriate for seed?
For example, in http://emcee.readthedocs.io/en/latest/tutorials/line/ we can see the value…

David
- 63
- 1
- 11
-2
votes
1 answer
Entity Framework does not seed
I am currently learning Entity Framework. To learn it better, I decided to create a car rental application, taking some ideas from expedia, etc.
At this point my program works, I can add, edit, delete from database, although my seed does not…

Mat Kolodziej
- 3
- 1
- 4
-2
votes
2 answers
Need help fixing Segmentation Fault
I had this working a second ago but accidentally broke it. Can anyone help me fix it? I'm getting a Segmentation Fault so I assume I messed up the pointers at some point. It's supposed to generate a bunch of random numbers depending on user input.…

John Doe
- 15
- 1
- 4
-2
votes
1 answer
In python: missing randomness (fractional Brownian motion)
I am new to Python. I have two scripts for generating and plotting a 2D lattice which values represent a spatially distributed attribute in the form of a fractal image. The first script contains the function generating the fractal (orthodox name:…

FaCoffee
- 7,609
- 28
- 99
- 174
-2
votes
2 answers
Random Numbers Generator based on Current Time and Birth Date
I am starting to learn JavaScript and I found this article: http://michalbe.blogspot.ro/2011/02/javascript-random-numbers-with-custom.html
I liked the idea of a custom seed number generator but I for the love of Thor cannot figure it out, I really…

Lucian
- 24
- 2
- 9