Group: Administrators
Posts: 13K,
Visits: 104K
|
You don't need noreplacenorepeat. Every element in the pool of items (here: blocks) you sample from is unique and you want to sample each item once, i.e., there is nothing that could possibly repeat. You want a simple noreplace, i.e., sample 50 times from 50 elements without replacement:
5-54 = noreplace( video01, video02, video03, video04, video05, video06, video07, video08, video09, video10, video11, video12, video13, video14, video15, video16, video17, video18, video19, video20, video21, video22, video23, video24, video25, video26, video27, video28, video29, video30, video31, video32, video33, video34, video35, video36, video37, video38, video39, video40, video41, video42, video43, video44, video45, video46, video47, video48, video49, video50)
|
Group: Forum Members
Posts: 1,
Visits: 6
|
I want to randomize the order in which the blocks appear. But some videoblocks appear more than once. For example video01 is shown 4 times while video45 and video47 are not shown even once. It seems that the noreplacenorepeat is not working properly. So far i got: <expt instruct> / blocks = [1=text1; 2=begin; 3=test; 4=begin2; 5-54 = noreplacenorepeat( video01, video02, video03, video04, video05, video06, video07, video08, video09, video10, video11, video12, video13, video14, video15, video16, video17, video18, video19, video20, video21, video22, video23, video24, video25, video26, video27, video28, video29, video30, video31, video32, video33, video34, video35, video36, video37, video38, video39, video40, video41, video42, video43, video44, video45, video46, video47, video48, video49, video50); 55=filler; 56=begin3; 57-106 = noreplacenorepeat( videor101, videor102, videor103, videor104, videor105, videor106, videor107, videor108, videor109, videor110, videor111, videor112, videor113, videor114, videor115, videor116, videor117, videor118, videor119, videor120, videor121, videor122, videor123, videor124, videor125, videor126, videor127, videor128, videor129, videor130, videor131, videor132, videor133, videor134, videor135, videor136, videor137, videor138, videor139, videor140, videor141, videor142, videor143, videor144, videor145, videor146, videor147, videor148, videor149, videor150); 107=end ] </expt
|