Is it possible to use Perl shuffle so that every time it produces outputs in the same order?
Use the function srand()always with the same initial value ( 123in this case). For example. I get:
srand()
123
$ perl -MList::Util=shuffle -E 'srand 123; say shuffle 1 .. 5' 41352
repeated every time. Without srand (), calling it is different.
Source: https://habr.com/ru/post/1615384/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1615379/aspnet-5-mvc-6-generic-repository-pattern&usg=ALkJrhh3PVmkLg6TfkhOqpxKgIAciwarmwSince all java LinkedList member variables are transient, what will the use of Serializable be? - javaboost :: proto :: is_aggregate returns false when it is an aggregate type - c ++Jekyll only shows the tag on the page - ruby | fooobar.comWhat assumptions can I make for the local addresses of C ++ variables - c ++Calculate the torque needed to align two 3D vectors with constant acceleration? - c ++Avoid duplicate validation code on Javascript interface and Java backend? - javaЧто делает ключевое слово Attribute в VB6? - vb.netSearch and delete in O (log n) time using arrays - data-structuresAjax data source (objects): TypeError: f - undefined - jsonAll Articles