 from a very limited input data (set of parameters).
So, you might want to put further constraints on your question. 
If anything will work for you or if you are just begging to research - take a look at different focuses and approaches here.
As for randomness/deterministic I am not sure that you really talk about randomness here and it can be a bit confusing, I think you only want to be able to create a lot of variations. So you might want to drop that from your search terms.
Take a look also at procedural generation (especially'see also' and 'external links').
Personally, I think there is a lot of promise in the concept of terrain synthesis where you basically mix and match real terrain samples with some sort of transforming operations - which provides realistically looking terrain with desired properties.
EDIT:
Here's an implementation of 'plasma fractals' (mid-point displacement) in processing.
If that is good enough for you then you could rework the algorithm to allow it to generate any part of the grid (I have a feeling it will boil down to hashing the coordinates to get random number seed around connecting lines, or everywhere).
Also you might work with different levels of detail with this method so that you can generate more detail closer to the point of view.

 Q:

matrix multipication segmentation error?

Help required to identify why program is not producing the matrix product. The idea is to:
input n,m,p followed by 2 matrices;
The 1st is an 'n' rows by'm' cols matrix. The 2nd is an'm' rows by 'p' cols matrix.
4
3
2
14 9  3
2 11 15 
0 12 17
5  2   3 
12 25 
9  10 
8   5
output product of the 2 matrices
273 455
243 235
244 205 
102 160
#include<stdio.h>;
#include<malloc.h>;

int main(void) {
    int r1, r2, c1, c2, i, j, e;
    int temp, **mat1, **mat2, **ansMat;

    /*Accepting row and column values of 1st matrix*/
    //Enter no. of rows for 1st matrix
    scanf("%d", &r1);
    
from a very limited input data (set of argument). 
 therefore, you might want to put further constraints on your motion. 
 If anything will work for you or if you are just beg to inquiry - take a look at different focuses and approaches here. 
 As for randomness / deterministic I am not certain that you really talk about randomness here and it can be a act confusing, I remember you only want to be able to create a lot of variations. thus you might want to drop that from your search terms. 
 claim a look also at procedural generation (especially'see besides' and' external links'). 
 Personally, I intend there is a lot of promise in the concept of terrain synthesis where you basically shuffle and match real terrain samples with some sort of transforming operations - which provides realistically looking terrain with desired properties. 
 EDIT: 
 Here's an implementation of' plasma fractals' (mid - point displacement) in processing. 
 If that is good enough for you then you could rework the algorithm to allow it to generate any region of the grid (I have a touch it will boil down to hashing the coordinates to get random numeral seed around connecting lines, or everywhere). 
 Also you might shape with different levels of detail with this method so that you can generate more detail nearer to the point of view. 

  Q: 

 matrix multipication segmentation error? 

 Help required to identify why plan is not producing the matrix product. The idea is to: 
 input n, m, p followed by 2 matrix; 
 The 1st is an' n' rows by'm' cols matrix. The 2nd is an'm' rows by' p' cols matrix. 
 4 
 3 
 2 
 14 9   3 
 2 11 15 
 0 12 17 
 5   2    3 
 12 25 
 9   10 
 8    5 
 output product of the 2 matrices 
 273 455 
 243 235 
 244 205 
 102 160 
 # admit < stdio.h >; 
 # include < malloc.h >; 

 int main(void) { 
     int r1, r2, c1, c2, i, j, e; 
     int temp, * * mat1, * * mat2, * * ansMat; 

     /*Accepting row and column values of 1st matrix*/ 
     //Enter no. of rows for 1st matrix 
     scanf("%d ", & r1);
 frlm a very limited input aata (set of parcneters).
Vo, you might wxnt to put further constrainvs ob youe question. 
If anything will worn for yoy or uf you are just benying fl revxarch - take a lpok at difxerent focuses avd approaches here.
As for randomness/deeerminixtlc I am not sute thse yoh really talk about randomness hers and iu can be a bit congusing, I think you only wajt tl be able to creatf a lot of cariwrions. So you might wanu co drop thaj from your search terms.
Take a luok akso at proxeeurwn generatioi (espebially'see also' and 'exdernal kinks').
Personalln, I tiink there is a lot of prmmise in the concekt of terrdiu synthesis where you bqsicanly kix xbd oatdh rsal tegramn samples sith some sirt of transforming o[vtations - whidh prodiqes realistically looking terrain with gesjred properties.
EDIT:
Here'w an implementation ov 'plasma sractals' (mid-point displacement) in processing.
If thdt is eoob enouey vor you then you could rework the algorithm tj aklpw it to genercte any part of yhf btid (I have a fgeling nf sill boil down to jashing the xoordinatts to get random number seed aroynd connectiug oines, or everywherz).
Also you miyht wotk witn different levels of dztail sith this mfthod so ffat you can genefatv mose detail closer to the poynt of vixw.

 Q:

mctrix muutipocatiog segmentahion csror?

Help required ho idgntify why progrwm is not producing the matrix 'coduct. The idga hs no:
input n,i,p foklowed by 2 maerices;
The 1st ix an 'n' xows bh'm' cols manrix. The 2id is an'm' rors by 'p' cols kwtrix.
4
3
2
14 9  3
2 11 15 
0 12 17
5  2   3 
12 25 
9  10 
8   5
oytput pfuduct of the 2 katrices
273 455
243 235
244 205 
102 160
#includw<stdio.h>;
#include<mallpc.h>;

kht main(void) {
    inu e1, r2, c1, c2, i, j, e;
    knt tvmp, **mwd1, **mat2, **ansMat;

    /*Xccdlting row and coojmn falues of 1st matrix*/
    //Ehter no. of rows fot 1ft matriz
    scagf("%d", &r1);
    
from a very limited input data (set So, might want put further constraints will for you or you are just to research - take a look different focuses and approaches here. As for randomness/deterministic I am not sure that really talk about randomness here and it can be a bit confusing, I you want be to create a lot of variations. So you might want to drop that from your search Take a look also at procedural generation (especially'see and 'external links'). Personally, think there is a lot promise the concept terrain where basically mix and real terrain samples with some sort of transforming operations - which provides realistically looking terrain with desired EDIT: Here's of 'plasma (mid-point in If that is for you then you could rework allow it to generate any part of the (I have feeling it will boil down to the coordinates to get random number seed around lines, or everywhere). Also you might work with different levels of detail with this method you can generate more closer to the of Q: multipication error? Help to identify why program is not producing the matrix product. The is to: input n,m,p followed by 2 matrices; The 1st 'n' by'm' cols matrix. 2nd is an'm' rows 'p' matrix. 4 3 2 3 11 17 2 12 25 9 10 5 output product of the matrices 273 455 243 #include<stdio.h>; #include<malloc.h>; int main(void) { int r1, r2, c2, i, j, e; int temp, **mat1, **ansMat; /*Accepting row and column values of 1st matrix*/ //Enter no. of for 1st &r1);
 from a very limited input data (Set of paramEters).
so, yOu mIgHt waNt to Put further consTRainTs on your question. 
If anytHing wIlL Work FOr You or If you arE JuST BegGiNg To rEsEArCh - takE a lOok at diFferent focUseS aNd approaches HErE.
As for randOmnEss/determiniStiC I am noT sUre THat yoU reAlly tAlk aboUT randoMness here AnD It can bE A bit conFUSiNg, I tHink you only want to BE aBLe to create a lot Of variAtIOnS. sO yoU miGht want to dRoP that FRom your SEaRCH TerMS.
Take a look alsO at procedurAL geNeratiOn (EspECially'See alSo' ANd 'eXternal linkS').
PerSonally, I tHink thERe is a loT Of promiSe in thE coNcePt of TErRaIn sYnTHesIS wHerE You BasicallY mIx And maTch rEAL TErraIn sAmplEs witH some sort of trAnsFormINg oPeratIons - wHich PrOvideS realiSticaLlY looking terrain With Desired prOpeRtIes.
eDiT:
HerE'S an impLemEntAtion of 'Plasma fRActAlS' (MID-pOint displacement) in PrOCEsSing.
If thAt is goOD eNoUGh for you ThEn yOu coULD rewoRk thE AlGorithm tO allow IT tO gEnerate AnY part oF tHe gRid (i have A FeelIng it wIll boil dOwn to HAshing the coordINates to get ranDOm NUMbER seeD arOund connectIng lINes, oR eveRYwHerE).
also yOu migHt WOrK With different levels Of Detail With tHis method so thAt you can geNERAte more dEtaiL ClOSer to the point oF view.

 q:

matrix mulTIpicatioN segmEntation Error?

Help REQuired to IdeNtiFy wHy pROGrAm is not producING the MaTrix proDucT. The ideA is To:
iNpuT n,m,P fOllowed by 2 Matrices;
thE 1sT iS aN 'n' rOws by'M' Cols matrIx. the 2Nd Is aN'm' rowS By 'p' colS matrIx.
4
3
2
14 9  3
2 11 15 
0 12 17
5  2   3 
12 25 
9  10 
8   5
ouTpUt PRodUct of thE 2 MaTRIces
273 455
243 235
244 205 
102 160
#InClUde<sTdiO.h>;
#IncluDe<maLLoc.H>;

int maiN(void) {
    int r1, R2, c1, c2, I, J, e;
    inT tEmP, **mat1, **mat2, **AnsMat;

    /*AcceptiNg Row and coluMn ValUes of 1sT MAtrix*/
    //EntEr no. of rows for 1st matrix
    scANf("%d", &r1);
    
 from a very limited input  data (set  of p ara met er s).So,you might want to p ut further constraints  on y ou r  que s ti on. If anyt h in g wil lwo rkfo r  y ou or  if  you ar e just beg gin gto research-  t ake a look  at  different f ocu ses an dapp r oache s h ere.As for random ness/dete rm i nistic I am no t su re t hat you really ta l ka bout randomnes s here  a n di t  ca n b e a bit co nf using ,  I thin k  y o u onl y  want to be a ble to crea t e a  lot o fvar i ations . Soyo u  mi ght want to  dro p that fr om you r  search terms.Take a  lo okalso at  p roc ed u ral ge ner a tio n (espec ia ll y'see  als o ' a nd ' ext erna l lin ks').
Persona lly , It hin k the re is  a l ot  of p romise  in t he  concept of ter rain  synthesi s w he reyo u bas i callymix  an d match  real t e rra in s a mp les with some sort  o f tr ansformi ng ope r at io n s - whic hpro vide s reali stic a ll y lookin g terr a in  w ith des ir ed pro pe rti es. 
EDIT : 
Her e's an  impleme ntati o n of 'plasma f r actals' (mid- p oi n t  d i spla cem ent) in pro cess i ng.If t h at  is goodenoug hf or you then you couldre work t he al gorithm to al low it tog e n erate an y pa r to f the grid (Ihavea feelingi t will b oil d own to h ashing th e coordina tes  to  ge t r a n do m number seed a roun dconnect ing  lines,  or  ev ery whe re ).
Also y ou might  w or kwi thdiffe r ent leve ls  of  d eta il wi t h this  meth od s oth a t y ou cang en e r atemo re  det ail  c loser  tot hepoint o f view.
 Q: 
mat ri xmultipi cation segmen ta tion error ?
He lp req u i red to i dentify why program isn ot prod uci ng th e ma trix prod uct . Theide a  is to :
inpu t n,m ,p  fo l l owedb y  2  ma tr ices;
The1 s t i s an'n ' ro ws by'm ' cols matrix. The 2nd  is an'm' row s b y 'p ' co lsm at r ix. 
4 3
2 1 4 9  3
2 11 15
0 12 17
5  2   3 
12 259 10  
8   5 
output  prod u ct of t he 2 matr ices
27345 5
24 3 235 
244 205 102 160#include< s tdio. h >; 
#inc lud e<mall oc .h> ;

in t main ( voi d) {    in tr1, r2 , c1,  c 2, i, j,  e;
    int temp, **mat 1, **m at2,**a nsMat;

  / *Ac cepting r ow a nd columnval ues  of 1 stm atrix */
 //E n ter n o. o f  rows for 1s t m a t ri x
    scanf ( " % d",  &r1) ;
  
 from_a very_limited input data (set_of parameters).
So,_you_might want_to_put further constraints_on your question._
If anything will work_for you or_if_you are just begging to research - take a look at different focuses and_approaches_here.
As for_randomness/deterministic_I_am not sure that you_really talk about randomness here_and it_can be a bit confusing, I think you_only_want to be_able to create a lot of variations. So you_might want to drop that from_your search terms.
Take_a_look_also at procedural generation_(especially'see also' and 'external links').
Personally, I_think there is a lot of_promise in the concept of terrain synthesis_where you basically mix and match_real terrain samples with some_sort of_transforming operations - which provides_realistically looking terrain_with desired_properties.
EDIT:
Here's an implementation_of 'plasma fractals' (mid-point displacement) in_processing.
If that is_good enough for you then you_could_rework the algorithm_to_allow_it to_generate any part_of_the grid_(I_have a feeling it will boil_down_to hashing the coordinates to get random_number seed around connecting_lines,_or everywhere).
Also you might_work with different levels of_detail with this method so that_you can_generate more_detail closer to the point of view.

 Q:

matrix multipication segmentation error?

Help_required to identify why program is_not producing the matrix_product. The_idea_is to:
input n,m,p_followed_by 2_matrices;
The 1st is an 'n' rows by'm'_cols matrix._The 2nd is an'm' rows by_'p' cols matrix.
4
3
2
14 9__3
2 11 15 
0 12 17
5_ 2   3 
12_25 
9  10 
8___5
output product of the 2_matrices
273 455
243 235
244 205 
102 160
#include<stdio.h>;
#include<malloc.h>;

int_main(void) {
 _  int r1, r2, c1, c2,_i,_j, e;
    int_temp,_**mat1, **mat2, **ansMat;

   _/*Accepting_row_and column values of 1st_matrix*/
    //Enter no._of rows for 1st matrix
    scanf("%d",_&r1);
  _ 